Skip to main content

Definition

Assembly: CloudNimble.SimpleMessageBus.Dispatch.dll Namespace: CloudNimble.SimpleMessageBus.Dispatch Inheritance: System.Object

Syntax

Summary

An IMessageDispatcher implementation that processes the messages in the order the IMessageHandlerIMessageHandlers</see> were registered with the Dependency Injection container.

Remarks

This dispatcher ensures that message handlers are invoked sequentially in registration order. This is useful when handler execution order matters, such as when one handler’s output affects another handler’s behavior. Each handler completes before the next one begins, providing predictable execution flow but potentially slower overall processing compared to parallel dispatching.

Constructors

.ctor

Initializes a new instance of the OrderedMessageDispatcher class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Methods

Dispatch

Sends the MessageEnvelope to the IMessageHandlerMessageHandlers</see> registered to that type, for processing.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Exceptions

Remarks

Handlers are invoked sequentially in the order they were registered with the DI container. If any handler throws an exception, subsequent handlers will not be invoked.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • CloudNimble.SimpleMessageBus.Dispatch.IMessageDispatcher