Interface IStreamPipelineBehavior<TRequest, TResponse>
- Namespace
- Caesar
- Assembly
- Caesar.Abstractions.dll
Wraps the handling of a streaming request.
public interface IStreamPipelineBehavior<in TRequest, TResponse> where TRequest : notnull
Type Parameters
TRequestThe request type.
TResponseThe item type.
Methods
Handle(TRequest, StreamHandlerDelegate<TResponse>, CancellationToken)
Handles the request, calling next to obtain the inner stream.
IAsyncEnumerable<TResponse> Handle(TRequest request, StreamHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
Parameters
requestTRequestThe request.
nextStreamHandlerDelegate<TResponse>Continues the pipeline.
cancellationTokenCancellationTokenCancellation token.
Returns
- IAsyncEnumerable<TResponse>