IPipelineBehavior<TMessage, TResult> interface
Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll
Cross-cutting behavior that wraps the dispatch of any message:
commands returning TResult, queries, and void commands
(where TResult is Unit).
public interface IPipelineBehavior<TMessage, TResult>Type Parameters
Section titled “Type Parameters”TMessage
The command or query type (ICommand<TResult>, IQuery<TResult>,
or ICommand for void commands, in which case TResult
is Unit).
TResult
The success value type, or Unit for void commands.
Methods
Section titled “Methods”Handle(TMessage, MessageHandlerDelegate<TMessage, TResult>, CancellationToken)
Section titled “ Handle(TMessage, MessageHandlerDelegate<TMessage, TResult>, CancellationToken)”Executes this behavior step, calling next to continue the pipeline.
ValueTask<Result<TResult>> Handle(TMessage message, MessageHandlerDelegate<TMessage, TResult> next, CancellationToken ct = default)Parameters
Section titled “Parameters”message TMessage
next MessageHandlerDelegate<TMessage, TResult>