Table of Contents

Interface IRequestPostProcessor<TRequest, TResponse>

Namespace
Caesar.Pipeline
Assembly
Caesar.Abstractions.dll

Runs after the handler of TRequest has produced a response.

public interface IRequestPostProcessor<in TRequest, in TResponse> where TRequest : notnull

Type Parameters

TRequest

The request type.

TResponse

The response type.

Methods

Process(TRequest, TResponse, CancellationToken)

Processes the request and its response after the handler ran.

Task Process(TRequest request, TResponse response, CancellationToken cancellationToken)

Parameters

request TRequest

The request.

response TResponse

The response produced by the handler.

cancellationToken CancellationToken

Cancellation token.

Returns

Task