Table of Contents

Interface IRequestExceptionAction<TRequest, TException>

Namespace
Caesar.Pipeline
Assembly
Caesar.Abstractions.dll

Runs side effects (logging, metrics, compensation) when an exception of type TException (or a derived type) is thrown while handling TRequest. The exception is always rethrown afterwards.

public interface IRequestExceptionAction<in TRequest, in TException> where TRequest : notnull where TException : Exception

Type Parameters

TRequest

The request type.

TException

The exception type.

Methods

Execute(TRequest, TException, CancellationToken)

Executes the action.

Task Execute(TRequest request, TException exception, CancellationToken cancellationToken)

Parameters

request TRequest

The request that failed.

exception TException

The exception.

cancellationToken CancellationToken

Cancellation token.

Returns

Task