Table of Contents

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

TRequest

The type of the job to handle, which must implement IJob.

Inheritance
JobHandlerBase<TRequest>
Implements
Inherited Members

Methods

HandleAsync(TRequest, CancellationToken)

Handles the specified job action.

public abstract Task<JobResult> HandleAsync(TRequest action, CancellationToken cancellationToken)

Parameters

action TRequest

The job action to handle.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<JobResult>

A task that represents the asynchronous operation. The task result contains the JobResult.