Table of Contents

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

request TRequest

The request.

next StreamHandlerDelegate<TResponse>

The rest of the pipeline.

cancellationToken CancellationToken

Stops the stream.

Returns

IAsyncEnumerable<TResponse>

The values.