IMessageDispatcher

Defines the required composition of every Dispatcher used by SimpleMessageBus to send to the registered to handle that message’s .

Syntax

public interface IMessageDispatcher

Methods

Dispatch

Task Dispatch(MessageEnvelope messageEnvelope)
Dispatches an incoming to the registered to handle that message’s .

Parameters

  • messageEnvelope MessageEnvelope: The instance to send to the registered .

Returns

Task A reference for the asynchronous function.

Remarks

Message dispatchers control how messages are delivered to their handlers. SimpleMessageBus provides two built-in implementations: for sequential processing and for concurrent processing. Custom dispatchers can be implemented for specialized routing or processing logic.