Table of Contents

Method Handle

Namespace
Mediarion
Assembly
Mediarion.dll

Handle(TRequest, RequestHandlerDelegate<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.")]
Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)

Parameters

request TRequest

The request.

next RequestHandlerDelegate<TResponse>

The rest of the pipeline.

cancellationToken CancellationToken

Cancels the operation.

Returns

Task<TResponse>

The response.