of
Wraps the instance of Event into an ExternalMessage
.
Return
the external message wrapping the given event
Parameters
event
the event to wrap
origin
the name of the bounded context in which the event was created
Wraps the instance of Command into an ExternalMessage
.
Return
the external message wrapping the given command
Parameters
command
the command to wrap
origin
the name of the bounded context in which the command was created