Method Handle
- Namespace
- Mediarion
- Assembly
- Mediarion.Streaming.dll
Handle(TRequest, StreamHandlerDelegate<TResponse>, CancellationToken)
Runs around the rest of the pipeline.
[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords", Justification = "The parameter name is part of the API this library is a drop-in for.")]
IAsyncEnumerable<TResponse> Handle(TRequest request, StreamHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
Parameters
requestTRequestThe request.
nextStreamHandlerDelegate<TResponse>The rest of the pipeline.
cancellationTokenCancellationTokenStops the stream.
Returns
- IAsyncEnumerable<TResponse>
The values.