Interface IHandler<TRequest>
- Namespace
- Olve.MinimalApi
- Assembly
- Olve.MinimalApi.dll
Defines a handler for processing requests of type TRequest.
public interface IHandler<in TRequest>
Type Parameters
TRequestThe type of request to handle.
Methods
RunAsync(TRequest, CancellationToken)
Runs the handler asynchronously for the specified request.
Task<Result> RunAsync(TRequest request, CancellationToken cancellationToken)
Parameters
requestTRequestThe request to handle.
cancellationTokenCancellationTokenToken to cancel operation.