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?
I would recommend you to use OperationContext. Here's an example of how you could use it to persist some state.
精彩评论