Interface IBehavior
Can be used to build a custom pipeline, plugging some functionality into the IPublisher.
Namespace: Silverback.Messaging.Publishing
Assembly: Silverback.Core.dll
Syntax
public interface IBehavior
Methods
| Improve this doc View sourceHandleAsync(Object, MessageHandler)
Process, handles or transforms the messages being published to the internal bus.
Declaration
Task<IReadOnlyCollection<object>> HandleAsync(object message, MessageHandler next)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message being published. |
MessageHandler | next | The next behavior in the pipeline. |
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 result values (if any). |