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

发布于 2024-09-02 12:24:37 字数 43 浏览 1 评论 0原文

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

Is it possible to control throttling on callback? So the server would be limited(controlled) how often it can callback the client.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云柯 2024-09-09 12:24:37

是的..有一种方法可以定义用户的最大限制...
您可以添加并发调用、实例和会话的最大数量。

示例配置...

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

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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文