Interface IAppJobService.IAppJobAddHandler
public interface IAppJobService.IAppJobAddHandler
Methods
AddOrUpdate(Guid?)
Add a job with a user-specified JobId or update if already exists
IAppJobService.IAppJobAddHandler AddOrUpdate(Guid? jobId)
Parameters
jobIdGuid?the job
Returns
ApplyAsync()
Task<IAppJobService.AppJobSubmitResult> ApplyAsync()
Returns
ApplyAsync(CancellationToken)
Task<IAppJobService.AppJobSubmitResult> ApplyAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
AutoDelete(bool)
Automatically delete job when completed successfully
IAppJobService.IAppJobAddHandler AutoDelete(bool autoDelete = true)
Parameters
autoDeletebool
Returns
GetAwaiter()
TaskAwaiter<IAppJobService.AppJobSubmitResult> GetAwaiter()
Returns
SuppressIncidents(bool)
Do not create incidents when job fails
IAppJobService.IAppJobAddHandler SuppressIncidents(bool sSuppressIncidents = true)
Parameters
sSuppressIncidentsbool
Returns
WithDescription(string)
A description of this job ( shows in UI )
IAppJobService.IAppJobAddHandler WithDescription(string description)
Parameters
descriptionstringthe description
Returns
WithRetries(int)
The number of automatic retries to attempt, before declaring the job 'Faulted'
IAppJobService.IAppJobAddHandler WithRetries(int retries)
Parameters
retriesintthe number of retries
Returns
WithTag(string)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTag(string tag)
Parameters
tagstring
Returns
WithTag(string, string?)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTag(string tag, string? value)
Parameters
Returns
WithTags(IEnumerable<string>)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTags(IEnumerable<string> tags)
Parameters
tagsIEnumerable<string>
Returns
WithTags(IEnumerable<(string tag, string? value)>)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTags(IEnumerable<(string tag, string? value)> tags)
Parameters
tagsIEnumerable<(string tag, string value)>