Table of Contents

Delegate RequestHandlerDelegate<TResponse>

Namespace
Caesar
Assembly
Caesar.Abstractions.dll

Continues the request pipeline: invokes the next behavior or, at the end, the handler.

public delegate Task<TResponse> RequestHandlerDelegate<TResponse>(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional token that replaces the one flowing through the pipeline for the remainder of the chain. Leave it at its default to keep the original token.

Returns

Task<TResponse>
Continues the request pipeline: invokes the next behavior or, at the end, the handler.

Type Parameters

TResponse

The response type.

Constructors

RequestHandlerDelegate(object, nint)

public RequestHandlerDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(CancellationToken cancellationToken, AsyncCallback callback, object @object)

Parameters

cancellationToken CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task<TResponse> EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task<TResponse>

Invoke(CancellationToken)

public virtual Task<TResponse> Invoke(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<TResponse>