小编use*_*534的帖子

Propagate OperationContext into Async WCF Call

With C#5 Async-Await in WCF, after an await if rest of the code continues on a different thread, we loose the Current Operation Context. (OperationContext.Current is null).

I am working on a WCF Service which calls another external service. And there are a few Custom Binding Extensions used in the external service call which access the Operation Context. So I need the Context to be propagated during this call and it cant just work with copying the operation context into …

c# wcf operationcontext async-await c#-5.0

6
推荐指数
1
解决办法
2312
查看次数

标签 统计

async-await ×1

c# ×1

c#-5.0 ×1

operationcontext ×1

wcf ×1