Hi
I’m a few steps down the track from my last problem!
So I have a message in my MQ calling an authenticated service using IBearerHasToken
like my issue a couple of days ago - all working great with 8.2.3.
Inside that handler, I want to call another internal service, and am using Gateway.SendAsync()
to try and do that. However, I appear to be losing the session info along the way somehow.
Just before I call Gateway.SendAsync
, Request.GetSession()
returns the info I would expect.
When the request gets to the called service, Request.GetSession()
does not return any of the expected info (in fact, it just has a session ID and created time).
Stepping through the code, I can see that by the time the InProcessServiceGateway
constructor is called, it can no longer access that extra info from the Session, such as the authenticated username, etc.
Is that expected, or should I still be able to access the session?
Calling the service using base.ResolveService
and then service.Post()
works fine with the session info preserved.