Interface IDispatchPipeline
Represents the ordered set of middleware executed when dispatching a message.
public interface IDispatchPipeline
- Extension Methods
Methods
ExecuteAsync(IDispatchMessage, IMessageContext, DispatchRequestDelegate, CancellationToken)
Executes the pipeline with the provided message and context.
ValueTask<IMessageResult> ExecuteAsync(IDispatchMessage message, IMessageContext context, DispatchRequestDelegate nextDelegate, CancellationToken cancellationToken)
Parameters
messageIDispatchMessageMessage to be dispatched.
contextIMessageContextContext associated with the message.
nextDelegateDispatchRequestDelegateDelegate to invoke when pipeline completes.
cancellationTokenCancellationTokenToken used to cancel the operation.
Returns
- ValueTask<IMessageResult>
The result produced by the pipeline.