public interface ITaskProcessingJob<TDirective> where TDirective : TaskDirective
Public Interface ITaskProcessingJob(Of TDirective As TaskDirective)
generic<typename TDirective> where TDirective : TaskDirective public interface class ITaskProcessingJob
Thetype exposes the following members.
Token that signals if the job has been asked to abort.
Message given for task cancellation, if it has been requested. Typically should be included in final status of the task if it marked canceled.
Token that signals if task cancellation has been requested.
The task directive.
Indicates whether the job has been asked to abort.
Indicates whether it has been requested that the job's task is cancelled.
The number of times this job has been retried.
The application task info.
Indicates when a call to Update(NullableInt32, String, JObject) should throw.
The transaction mode.
Vault access. Transaction scope is determined by the TransactionMode.
Used to finalize task processing in Hybrid mode. The callback runs in the scope of a vault transaction along with the final task completed state. If any part of the callback or task completion steps fail, all vault operations performed in the callback will be rolled back. Throws if called more than once. Throws if not in Hybrid mode.
Gets a snapshot of the current job status. Use Update(NullableInt32, String, JObject) to modify.
Throws if the job has been asked to abort.
Throws if it has been requested that the job's task is cancelled.
Runs a callback in the scope of a vault transaction. If the method fails, all operations made with the provided vault will be rolled back. If the method succeeds, all operations made with the provided vault will be committed.
Updates the in-progress status of the task.
Triggered when the job either succeeds or fails.
Triggered when the job fails.
Triggered when the job was asked to commit it's progress/status to the vault. This can't always be done, even when triggered, due to risks of transaction lock conflicts, but this can be used to store progress data elsewhere in those cases.
Triggered when the job finishes successfully.