C# Class Akka.Cluster.Tools.PublishSubscribe.Internal.Utils

ファイルを表示 Open project: rogeralsing/akka.net

Public Methods

Method Description
WrapIfNeeded ( object message ) : object

Mediator uses Router to send messages to multiple destinations, Router in general unwraps messages from RouterEnvelope and sends the contents to Routees.

Using mediator services should not have an undesired effect of unwrapping messages out of RouterEnvelope. For this reason user messages are wrapped in MediatorRouterEnvelope which will be unwrapped by the Router leaving original user message.

Method Details

WrapIfNeeded() public static method

Mediator uses Router to send messages to multiple destinations, Router in general unwraps messages from RouterEnvelope and sends the contents to Routees.

Using mediator services should not have an undesired effect of unwrapping messages out of RouterEnvelope. For this reason user messages are wrapped in MediatorRouterEnvelope which will be unwrapped by the Router leaving original user message.

public static WrapIfNeeded ( object message ) : object
message object
return object