I need to put request specific data in WCF? Is it safe to use ThreadStatic variable in WCF?
Asked
Active
Viewed 1,050 times
1
-
Possible duplicate of http://stackoverflow.com/questions/1895732/where-to-store-data-for-current-wcf-call-is-threadstatic-safe – Michael Freidgeim Jun 27 '12 at 20:04
1 Answers
2
I would recommend you to use OperationContext. Here's an example of how you could use it to persist some state.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928