Definition
Assembly: CloudNimble.SimpleMessageBus.Dispatch.dll Namespace: CloudNimble.SimpleMessageBus.DispatchSyntax
Summary
Defines the required composition of every Dispatcher used by SimpleMessageBus to send MessageEnvelopeMessageEnvelopes</see> to the IMessageHandlerIMessageHandlers</see> registered to handle that message’s Type.Remarks
Message dispatchers control how messages are delivered to their handlers. SimpleMessageBus provides two built-in implementations: OrderedMessageDispatcher for sequential processing and ParallelMessageDispatcher for concurrent processing. Custom dispatchers can be implemented for specialized routing or processing logic.Methods
Dispatch Abstract
Dispatches an incoming MessageEnvelope to the IMessageHandlerIMessageHandlers</see> registered to handle that message’s Type.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
messageEnvelope | CloudNimble.SimpleMessageBus.Core.MessageEnvelope | The MessageEnvelope instance to send to the registered IMessageHandlerIMessageHandlers</see>. |
Returns
Type:System.Threading.Tasks.Task
A Task reference for the asynchronous function.