Interface IRequestPreProcessor<TRequest>
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
TRequestThe request type.
Methods
Process(TRequest, CancellationToken)
Processes the request before the handler runs.
Task Process(TRequest request, CancellationToken cancellationToken)
Parameters
requestTRequestThe request.
cancellationTokenCancellationTokenCancellation token.