【问题标题】:Handling Multiple requests for WCF Service in Silverlight application在 Silverlight 应用程序中处理对 WCF 服务的多个请求
【发布时间】: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,所以我只是想知道这是否与它有关...

如果我需要关闭它,可能需要做一些实质性的工作,所以只是希望有解决方法吗?

谢谢

【问题讨论】:

    标签: asp.net wcf service web


    【解决方案1】:

    给你几个问题:

    • 您在服务上配置了 WCF 限制什么?
    • 在客户端,您是否链接请求?确保您没有等待第一次通话完成。

    【讨论】:

    • 是的限制设置为 50 和其他并发端口
    猜你喜欢
    • 2014-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-08
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 2012-12-18
    相关资源
    最近更新 更多