Accessing Context in an IMessageMutator implementer?

懵懂的女人 提交于 2019-12-11 21:11:08

问题


How can I access the current context from within a message mutator?

I also need to have access to the saga data.

I want to pass certain data transparently from both the sender and implementers (handlers). This data will be set in the outgoing headers. Depending on the situation, if the handler is of type Saga, I want to set some of these properties into the saga data.

Later when a call "ReplyToOriginator" is detected, I want to grab the values from saga and set it back into the headers of the reply message.

So how can I do this from within the message mutator?

All the examples I have seen so far seems to indicate that it has access only to the message and not context.

来源:https://stackoverflow.com/questions/18225486/accessing-context-in-an-imessagemutator-implementer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!