代码之家  ›  专栏  ›  技术社区  ›  Jaswant Agarwal

WCF并发调用

  •  0
  • Jaswant Agarwal  · 技术社区  · 15 年前

    我们如何限制WCF中并发调用的数量?

    2 回复  |  直到 15 年前
        1
  •  3
  •   Ezombort    15 年前

    当涉及到我使用的这些问题时 this blog post 作为参考。快速简洁。

        2
  •  2
  •   Nader Shirazie    15 年前

    看一看 here 例如。您可以使用上的属性指定限制 ServiceThrottlingBehavior 班级:

    • MaxConcurrentCalls:在ServiceHost对象中活动处理的最大消息数。每个通道都有一个挂起的消息,它不依赖于Max CONCURE调用的值,直到Windows Cuffic Foundation(WCF)开始处理它。

    • maxConcurrentinInstances:服务中一次可以执行的InstanceContext对象的最大数目

    • MaxConcurrentSessions:ServiceHost对象一次可以接受的最大会话数

    (这些描述摘自msdn)