You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In V3 my ApplicationMessageInterceptor checked, whether the ClientId was null and if that was the case, set context.ApplicationMessage.Retain = true;. This way, all messages published by the server would be retained.
In V4 I publish messages from the broker by calling the server.InjectApplicationMessage() method. I also added an eventhandler to the server.InterceptingPublishAsync property, that tries to do the same thing as my ApplicationMessageInterceptor did before. However, for server side injected messages, this handler is never called. Do I need to use a different Event for this, or is this not possible? Do I have to set Retain = true on every message I want to publish from the server at the location it is generated?
Which project is your question related to?
Server
The text was updated successfully, but these errors were encountered:
Describe your question
In V3 my
ApplicationMessageInterceptor
checked, whether theClientId
wasnull
and if that was the case, setcontext.ApplicationMessage.Retain = true;
. This way, all messages published by the server would be retained.In V4 I publish messages from the broker by calling the
server.InjectApplicationMessage()
method. I also added an eventhandler to theserver.InterceptingPublishAsync
property, that tries to do the same thing as myApplicationMessageInterceptor
did before. However, for server side injected messages, this handler is never called. Do I need to use a different Event for this, or is this not possible? Do I have to setRetain = true
on every message I want to publish from the server at the location it is generated?Which project is your question related to?
The text was updated successfully, but these errors were encountered: