开发者

Is there a way to configure throttling for callbacks in WCF?

Is it possible to control throttling on callback? So the server would be limited(controll开发者_运维知识库ed) how often it can callback the client.


yes.. there is a way you can define the max limit of users... you can add max no of concurrent calls, instances and sessions.

Sample config...

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜