ChannelBase.DefaultOpenTimeout 属性

定义

获取为完成打开操作提供的默认时间间隔。Gets the default interval of time provided for an open operation to complete.

protected:
 virtual property TimeSpan DefaultOpenTimeout { TimeSpan get(); };
protected public:
 virtual property TimeSpan DefaultOpenTimeout { TimeSpan get(); };
protected override TimeSpan DefaultOpenTimeout { get; }
protected internal override TimeSpan DefaultOpenTimeout { get; }
member this.DefaultOpenTimeout : TimeSpan
Protected Overrides ReadOnly Property DefaultOpenTimeout As TimeSpan
Protected Friend Overrides ReadOnly Property DefaultOpenTimeout As TimeSpan

属性值

TimeSpan

默认的 TimeSpan,指定在超时前可用于完成打开操作的时间。The default TimeSpan that specifies how long the open operation has to complete before timing out.

注解

获取与通道 OpenTimeout 关联的 ManagerGets the OpenTimeout associated with Manager for the channel.

时间可能较长的操作必须设置超时。All operations that are potentially lengthy must have a timeout. 不使用明确超时值的方法必须委托给将具有默认超时值的方法,否则不得进行任何阻止工作。Methods that do not take explicit timeouts, must delegate to those methods 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.

适用于