Table of Contents

Interface IRequestPreProcessor<TRequest>

Namespace
Caesar.Pipeline
Assembly
Caesar.Abstractions.dll

Runs before the handler of TRequest. Cannot alter the response or short-circuit; use an IPipelineBehavior<TRequest, TResponse> for that.

public interface IRequestPreProcessor<in TRequest> where TRequest : notnull

Type Parameters

TRequest

The request type.

Methods

Process(TRequest, CancellationToken)

Processes the request before the handler runs.

Task Process(TRequest request, CancellationToken cancellationToken)

Parameters

request TRequest

The request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task