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
cancellationTokenCancellationTokenOptional 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
TResponseThe response type.
Constructors
RequestHandlerDelegate(object, nint)
public RequestHandlerDelegate(object @object, nint method)
Parameters
Methods
BeginInvoke(CancellationToken, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(CancellationToken cancellationToken, AsyncCallback callback, object @object)
Parameters
cancellationTokenCancellationTokencallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual Task<TResponse> EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
- Task<TResponse>
Invoke(CancellationToken)
public virtual Task<TResponse> Invoke(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- Task<TResponse>