Skip to content

IDurableJobHandler.ExecuteJobAsync(IJobRunContext, CancellationToken)

ExecuteJobAsync(IJobRunContext, CancellationToken)

abstract
public abstract Task ExecuteJobAsync(IJobRunContext context, CancellationToken attemptCancellationToken)
Executes the durable job with the provided context.

Parameters

contextIJobRunContext
The context containing information about the durable job execution.
attemptCancellationTokenCancellationToken
A token which cooperatively requests cancellation of the current execution attempt. Attempt cancellation does not cancel the durable job itself; the job remains eligible for another attempt.

Returns

A task that represents the asynchronous job execution operation.