Interface IReturnValueHandler
These types are used to handle the subscribed methods return values (e.g. to republish the returned messages).
Namespace: Silverback.Messaging.Subscribers.ReturnValueHandlers
Assembly: Silverback.Core.dll
Syntax
public interface IReturnValueHandler
Methods
| Improve this doc View sourceCanHandle(object)
Returns a boolean value indicating whether this handler can handle the specified value.
Declaration
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
void Handle(object returnValue)
Parameters
Type | Name | Description |
---|---|---|
object | returnValue | The value to be handled. |
HandleAsync(object)
Handles the specified return value.
Declaration
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. |