有没有办法为WCF中的回调配置限制?

时间:2010-05-25 18:39:29

标签: wcf callback throttling

是否可以控制回调的限制?因此服务器将被限制(控制)它回调客户端的频率。

1 个答案:

答案 0 :(得分:0)

是的..有一种方法可以定义用户的最大限制... 您可以添加最多并发呼叫,实例和会话。

示例配置...

<system.serviceModel>
        <behaviors>
            <serviceBehaviors>
                <behavior name="Throttling">
                    <serviceThrottling maxConcurrentCalls="2" maxConcurrentInstances="2" />
                    <serviceThrottling />
                </behavior>
            </serviceBehaviors>
        </behaviors>
</system.serviceModel>