Delegate MessageHandler
The delegate representing the Handle method of the IBehavior.
Namespace: Silverback.Messaging.Publishing
Assembly: Silverback.Core.dll
Syntax
public delegate Task<IReadOnlyCollection<object?>> MessageHandler(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message being published. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyCollection<object>> | A Task<TResult> representing the asynchronous operation. The task result contains the actual messages to be published. |