Class SingleMessageReturnValueHandler
Handles the returned message republishing it.
Implements
Inherited Members
Namespace: Silverback.Messaging.Subscribers.ReturnValueHandlers
Assembly: Silverback.Core.dll
Syntax
public class SingleMessageReturnValueHandler : IReturnValueHandler
Constructors
| Improve this doc View sourceSingleMessageReturnValueHandler(IPublisher, IBusOptions)
Initializes a new instance of the SingleMessageReturnValueHandler class.
Declaration
public SingleMessageReturnValueHandler(IPublisher publisher, IBusOptions busOptions)
Parameters
Type | Name | Description |
---|---|---|
IPublisher | publisher | The IPublisher to be used to publish the messages. |
IBusOptions | busOptions | The IBusOptions that specify which message types have to be handled. |
Methods
| Improve this doc View sourceCanHandle(object)
Returns a boolean value indicating whether this handler can handle the specified value.
Declaration
public bool CanHandle(object returnValue)
Parameters
Type | Name | Description |
---|---|---|
object | returnValue | The value to be handled. |
Returns
Type | Description |
---|---|
bool | A boolean value indicating whether the value can be handled. |
Handle(object)
Handles the specified return value.
Declaration
public void Handle(object returnValue)
Parameters
Type | Name | Description |
---|---|---|
object | returnValue | The value to be handled. |
HandleAsync(object)
Handles the specified return value.
Declaration
public Task HandleAsync(object returnValue)
Parameters
Type | Name | Description |
---|---|---|
object | returnValue | The value to be handled. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |