在轮询双工 WCF 服务中设置回调超时
我有一个带有 CallbackContract 的 WCF 服务。使用“pollingDuplexHttpBinding”将服务公开给 Silverlight 客户端 当 Silverlight 客户端“死机”并且服务调用回调操作时,它会在一分钟后收到超时异常。 我怎样才能将这个超时设置为不同的?
谢谢, 埃拉德
I have a WCF service with a CallbackContract. The service is exposed to a Silverlight client using "pollingDuplexHttpBinding"
When the Silverlight client is "dead" and the service calls a callback operation, it gets a timeout exception after one minute.
How can I set this timeout to be different?
Thanks,
Elad
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MSDN 中有一篇关于配置 PollingDuplexHttpBinding:
更新:在“如何:为 Silverlight 客户端构建双工服务' 有一个基于
web.config
的示例,配置PollingDuplexHttpBinding
。希望这会有所帮助。
There is a nice article in MSDN related to configuring PollingDuplexHttpBinding:
UPDATE: Under 'To use PollingDuplexHttpBinding' paragraph of 'How to: Build a Duplex Service for a Silverlight Client' there is
web.config
based example configuringPollingDuplexHttpBinding
.Hope, this will help.
所以看来 PollingDuplexHttpBinding 的“SendTimeout”属性可以完成这项工作:
So it seems that the "SendTimeout" attribute of PollingDuplexHttpBinding does the job: