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 |
---|---|---|
System.Object | message | The message being published. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<System.Object>> | A System.Threading.Tasks.Task<TResult> representing the asynchronous operation. The task result contains the actual messages to be published. |