Interface IRequestPostProcessor<TRequest, TResponse>
Runs after the handler of TRequest has produced a response.
public interface IRequestPostProcessor<in TRequest, in TResponse> where TRequest : notnull
Type Parameters
TRequestThe request type.
TResponseThe 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
requestTRequestThe request.
responseTResponseThe response produced by the handler.
cancellationTokenCancellationTokenCancellation token.