【发布时间】:2013-07-26 07:42:52
【问题描述】:
我的 WCF 服务中有许多操作已使用以下属性进行修饰
[OperationContract(AsyncPattern = true)]
IAsyncResult BeginSomething1(...)
响应 EndSomething1()
[OperationContract(AsyncPattern = true)]
IAsyncResult BeginSomething2(...)
响应 EndSomething2()
我注意到无论我如何配置我的 WCF 服务,我都无法获得
BeginSomething1 和 BeginSomething2 同时运行。
也就是说,我首先在客户端调用 BeginSomething1,BeginSomething2 在 EndSomething1 完成之前似乎不会在服务器上运行。
我的 WCF 服务已将 AspNetCompatibilityRequirements 设置为 true,所以我只是想知道这是否与它有关...
如果我需要关闭它,可能需要做一些实质性的工作,所以只是希望有解决方法吗?
谢谢
【问题讨论】: