WCF服务单向操作超时
WCF 服务中的 OneWay 操作是否只要操作完成就执行,或者 oneway wcf 服务是否存在操作超时。
如果存在任何操作超时配置,那么请告诉我我想增加它,以便 wcf 服务应该花费尽可能多的时间来执行操作。
Does the OneWay operations in WCF service execute as long as the operation is complete or is there any operation timeout for oneway wcf service.
If there is as such any operation timeout configuration then please tell me I want to increase it so that one way wcf service should take as much time it want to execute operation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试配置与 app.config 中找到的 WCF 服务的绑定。
有关配置设置的更多信息此处
Try configure the bindings to the WCF service found in app.config.
More information on configuration settings here
您必须将通道转换为 IContextChannel。该接口有一个您可以设置的OperationTimeout 属性。它的位置与位于代理上的常见打开、关闭和连接超时不同。
You have to cast the channel as IContextChannel. This interface has an OperationTimeout property you can set. It's location is different from the usual Open, Close and Connect Timeouts that are located on the proxy.