Class JobHandlerBase<TRequest>
- Namespace
- Excalibur.Application.Requests.Jobs
- Assembly
- Excalibur.Application.dll
Represents a base class for handling jobs of type TRequest.
public abstract class JobHandlerBase<TRequest> : IActionHandler<TRequest, JobResult> where TRequest : IJob
Type Parameters
TRequestThe type of the job to handle, which must implement IJob.
- Inheritance
-
JobHandlerBase<TRequest>
- Implements
-
IActionHandler<TRequest, JobResult>
- Inherited Members
Methods
HandleAsync(TRequest, CancellationToken)
Handles the specified job action.
public abstract Task<JobResult> HandleAsync(TRequest action, CancellationToken cancellationToken)
Parameters
actionTRequestThe job action to handle.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.