超时 WCF 服务
WCF 中的超时是如何工作的? 例如,我知道您可以为客户端绑定配置sendTimeout和receiveTimeout。 但它们是如何工作的呢?
MSDN 将 sendTimeout 描述为:
TimeSpan 值,指定为某个事件提供的时间间隔 发送操作完成。 该值应该大于或等于 到零。 默认值为 00:01:00。
什么是发送操作/接收操作?
How do the timeouts work in WCF? I know for example that you can configure sendTimeout and receiveTimeout for a clients binding. But how do they work?
MSDN describes sendTimeout as:
A TimeSpan value that specifies the interval of time provided for a
send operation to complete. This value should be greater than or equal
to Zero. The default is 00:01:00.
What are send operations/receive operations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
客户端:
服务器端:
来源是 Brian McNamara MSDN 论坛。
Client side:
Server side:
The source is Brian McNamara on MSDN forums.
请参阅“WCF 中的超时及其默认值”http://blogs.msdn.com/b/hongmeig/archive/2010/03/06/timeouts-in-wcf-and-their-default-values.aspx
See "Timeouts in WCF and their default values" http://blogs.msdn.com/b/hongmeig/archive/2010/03/06/timeouts-in-wcf-and-their-default-values.aspx
除了那篇文章中的内容之外,还有客户端定义的操作超时。 请参阅:
http://final-proj.blogspot.com/2009 /09/wcf-timeouts.html
In addition to what was on that post, there's also the Operation Timeout defined on the client end. See this:
http://final-proj.blogspot.com/2009/09/wcf-timeouts.html