I have a problem with OperationContext that gets null after calling async (and my stream changes).
I know this is a know-how problem, and I walked away with some StackOverflow questions regarding this problem.
In .net 4.6.2 there is a fix for the problem, as you can read here .
AsccContext.Current Performance Improvements
WCF now has the ability to enable OperationContext.Current with ExecutionContext so that OperationContext flows through asynchronous continuations. With this enhancement, WCF allows CurrentContext to propagate from one thread to another thread. This means that even if theres a context switch between calls to OperationContext.Current, its value will flow correctly during method execution.
Is there anything special I need to do to get this supported at my end? I am using VS 2013, updated the framework to 4.6.2 and installed dev-pack. I changed my project to use Framework 4.6.2 and I still get null OperationContext after an asynchronous call.
source share