Table of Contents

Interface IDispatchPipeline

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

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

message IDispatchMessage

Message to be dispatched.

context IMessageContext

Context associated with the message.

nextDelegate DispatchRequestDelegate

Delegate to invoke when pipeline completes.

cancellationToken CancellationToken

Token used to cancel the operation.

Returns

ValueTask<IMessageResult>

The result produced by the pipeline.