I'm passing user information as part of each call to a stateful service. I use this information for audit purposes in the service.
Do I have to pass this information around within the service, or is there some other mechanism such as a user context to keep the data in that I can access globally? I have used thread storage (data slots) in the past to hold data, but since the code is async I assume that won't work?
There's a concept called CallContext, that could help. Read more here: http://blog.stephencleary.com/2013/04/implicit-async-context-asynclocal.html