In .net 4, Is it possible to store custom value such as userid in Thread.CurrentThread object?
I am trying to store userid for wcf client on the client side of MessageInspector in AfterReceiveRequest method as follows:
request.Headers.Add(MessageHeader.CreateHeader("userid", string.Empty, userid));
On the server side I would like to retrieve it in a Thread.CurrentThread in the method AfterReceiveRequest.
Is this possible?