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.
|
public static WrapIfNeeded ( object message ) : object | ||
message | object | |
return | object |