Is it safe to use ThreadStatic variable in WCF?

I need to put request specific data in WCF? Is it safe to use ThreadStatic variable in WCF?

Answers


I would recommend you to use OperationContext. Here's an example of how you could use it to persist some state.


Need Your Help

iPhone: Proper use of View and View Controller

iphone objective-c model-view-controller

I've recently been doing a lot of Objective-C programming, and just got back into doing more iPhone development. I've done a lot of programming using MVC in other languages/frameworks, but I just w...

connecting jquery attr to PHP Mysql?

php jquery mysql

a PHP table populates its data from mysql, When a user clicks .button a drop down table row menu appears where user has ability to add item to cart, the name of the item in cart should be the mysql...