ChannelManagerBase.IDefaultCommunicationTimeouts.OpenTimeout 属性
定义
获取 open 方法(由通信对象调用)在超时之前的时间间隔。Gets the interval of time after which the open method, invoked by a communication object, times out.
property TimeSpan System::ServiceModel::IDefaultCommunicationTimeouts::OpenTimeout { TimeSpan get(); };
TimeSpan System.ServiceModel.IDefaultCommunicationTimeouts.OpenTimeout { get; }
member this.System.ServiceModel.IDefaultCommunicationTimeouts.OpenTimeout : TimeSpan
ReadOnly Property OpenTimeout As TimeSpan Implements IDefaultCommunicationTimeouts.OpenTimeout
属性值
指定在 open 方法超时之前要等待的时间间隔的 TimeSpan。The TimeSpan that specifies the interval of time to wait for the open method to time out.
实现
注解
时间可能较长的操作必须设置超时。All operations that are potentially lengthy must have a timeout. 未使用明确超时的方法必须委托给将处理默认超时的方法,否则不得进行任何阻止工作。Methods that do not take explicit timeouts, must delegate to methods that do with default timeouts or must not do any work that blocks. 超时是完成高级别操作的总时间限制,因此任何重试操作只能在前面的操作尚未耗尽时间之前进行。Timeouts are the total limit for high-level operations for which they are to complete, so any retries must be limited to the time not already accessed by earlier tries.