开发者

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

开发者 https://www.devze.com 2023-01-01 13:10 出处:网络
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

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

精彩评论

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

关注公众号