Interface IReturnValueHandler
- Assembly
- Silverback.Core.dll
These types are used to handle the subscribed methods return values (e.g. to republish the returned messages).
public interface IReturnValueHandler
Methods
CanHandle(object)
Returns a boolean value indicating whether this handler can handle the specified value.
bool CanHandle(object returnValue)
Parameters
returnValueobjectThe value to be handled.
Returns
- bool
A boolean value indicating whether the value can be handled.
Handle(IPublisher, object)
Handles the specified return value.
void Handle(IPublisher publisher, object returnValue)
Parameters
publisherIPublisherThe IPublisher that published the message.
returnValueobjectThe value to be handled.
HandleAsync(IPublisher, object)
Handles the specified return value.
ValueTask HandleAsync(IPublisher publisher, object returnValue)
Parameters
publisherIPublisherThe IPublisher that published the message.
returnValueobjectThe value to be handled.