Table of Contents

Interface IReturnValueHandler

Namespace
Silverback.Messaging.Subscribers.ReturnValueHandlers
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

returnValue object

The 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

publisher IPublisher

The IPublisher that published the message.

returnValue object

The value to be handled.

HandleAsync(IPublisher, object)

Handles the specified return value.

ValueTask HandleAsync(IPublisher publisher, object returnValue)

Parameters

publisher IPublisher

The IPublisher that published the message.

returnValue object

The value to be handled.

Returns

ValueTask

A ValueTask representing the asynchronous operation.