I understand, that it is recommended to use IMessageHandlerContext, when sending further messages within a handler, to make sure that those messages participate in the same transaction scope. Our feature module used in the message handler which sends further messages, is used in a API as well. In the case, where we use the feature module from the API, the module should not use IMessageHandlerContext (because it doesn’t exist) but either IEndpointInstance or IMessageSession. The early versions of NSB provided a unified interface (IBus). With the seperation of these two use cases, we have to duplicate the interfaces. I understand that IMessageHandlerContext provides more properties and methods because it is used within a handler, but i in most cases, i think people don’t need to access message headers and more. Is there a way (unified interface), which fits both IMessageSession and IMessageHandlerContext? I think IUniformSession is not an option, because we use poor mans DI without any container.
Thanks in advance
NSB Version: 6.4