Tommaso,
The call is thread safe. However, the CallContext in a separate thread
is different than in the thread where you set the data. When you call
SetData, it is like thread local storage, it is only local to that thread of
execution.
You need to store the data some other way.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Tommaso Caldarola" <il********@lcimitero.it> wrote in message
news:44**********@x-privat.org...
If I call System.Runtime.Remoting.CallContext.SetData() and then I call
System.Runtime.Remoting.CallContext.GetData() from a different thread I
get null, if the thread indeed is the same I get right data.
How to do CallContext.GetData() thread safe?
Inviato da X-Privat.Org - Registrazione gratuita
http://www.x-privat.org/join.php