Class EnumerableMessagesReturnValueHandler
- Assembly
- Silverback.Core.dll
Handles the returned IEnumerable<T> republishing all the messages.
public class EnumerableMessagesReturnValueHandler : IReturnValueHandler
- Inheritance
-
EnumerableMessagesReturnValueHandler
- Implements
- Inherited Members
Constructors
EnumerableMessagesReturnValueHandler(BusOptions)
Initializes a new instance of the EnumerableMessagesReturnValueHandler class.
public EnumerableMessagesReturnValueHandler(BusOptions busOptions)
Parameters
busOptionsBusOptionsThe BusOptions that specify which message types have to be handled.
Methods
CanHandle(object)
Returns a boolean value indicating whether this handler can handle the specified value.
public 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.
public 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.
public ValueTask HandleAsync(IPublisher publisher, object returnValue)
Parameters
publisherIPublisherThe IPublisher that published the message.
returnValueobjectThe value to be handled.