Table of Contents

Class RequestExceptionActionProcessorBehavior<TRequest, TResponse>

Namespace
Caesar.Pipeline
Assembly
Caesar.dll

Runs every matching IRequestExceptionAction<TRequest, TException> when the inner pipeline throws, most specific exception type first, then rethrows the original exception.

public sealed class RequestExceptionActionProcessorBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> where TRequest : notnull

Type Parameters

TRequest

The request type.

TResponse

The response type.

Inheritance
RequestExceptionActionProcessorBehavior<TRequest, TResponse>
Implements
IPipelineBehavior<TRequest, TResponse>
Inherited Members

Constructors

RequestExceptionActionProcessorBehavior(IServiceProvider)

Creates the behavior.

public RequestExceptionActionProcessorBehavior(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Provider used to resolve exception actions.

Methods

Handle(TRequest, RequestHandlerDelegate<TResponse>, CancellationToken)

Handles the request, calling next to continue the pipeline.

public Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)

Parameters

request TRequest

The request.

next RequestHandlerDelegate<TResponse>

Continues the pipeline. Not calling it short-circuits the request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<TResponse>