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
jobId
Guid?the job
Returns
ApplyAsync()
Task<IAppJobService.AppJobSubmitResult> ApplyAsync()
Returns
ApplyAsync(CancellationToken)
Task<IAppJobService.AppJobSubmitResult> ApplyAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
AutoDelete(bool)
Automatically delete job when completed successfully
IAppJobService.IAppJobAddHandler AutoDelete(bool autoDelete = true)
Parameters
autoDelete
bool
Returns
GetAwaiter()
TaskAwaiter<IAppJobService.AppJobSubmitResult> GetAwaiter()
Returns
SuppressIncidents(bool)
Do not create incidents when job fails
IAppJobService.IAppJobAddHandler SuppressIncidents(bool sSuppressIncidents = true)
Parameters
sSuppressIncidents
bool
Returns
WithDescription(string)
A description of this job ( shows in UI )
IAppJobService.IAppJobAddHandler WithDescription(string description)
Parameters
description
stringthe description
Returns
WithRetries(int)
The number of automatic retries to attempt, before declaring the job 'Faulted'
IAppJobService.IAppJobAddHandler WithRetries(int retries)
Parameters
retries
intthe number of retries
Returns
WithTag(string)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTag(string tag)
Parameters
tag
string
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
tags
IEnumerable<string>
Returns
WithTags(IEnumerable<(string tag, string? value)>)
Add tag to the job
IAppJobService.IAppJobAddHandler WithTags(IEnumerable<(string tag, string? value)> tags)
Parameters
tags
IEnumerable<(string tag, string value)>