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 |
---|---|---|
object | message | The message being published. |
MessageHandler | next | The next behavior in the pipeline. |
Returns
Type | Description |
---|---|
Task<IReadOnlyCollection<object>> | A Task<TResult> representing the asynchronous operation. The task result contains the result values (if any). |