When should I use OperationContextScope inside of a WCF service?
Posted
by blinton
on Stack Overflow
See other posts from Stack Overflow
or by blinton
Published on 2010-03-18T14:40:19Z
Indexed on
2010/03/18
14:41 UTC
Read the original article
Hit count: 114
I'm currently working on a WCF service that reaches out to another service to submit information in a few of its operations. The proxy for the second service is generated through the strongly typed ProxyFactory<T>
class. I haven't experienced any issues but have heard I should do something like the following when making the call:
using (new OperationContextScope((IContextChannel)_service))
_service.Send(message);
So my question is: when is creating this new OperationContextScope
appropriate, and why?
Thanks!
© Stack Overflow or respective owner