ChannelListenerBase.DefaultCloseTimeout 属性

定义

获取为完成关闭操作提供的默认时间间隔。Gets the default interval of time provided for a close operation to complete.

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

属性值

TimeSpan

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

注解

此值在创建新的 ChannelListenerBase 对象时设置。This value is set when creating a new ChannelListenerBase object. 默认 ChannelListenerBase() 构造函数将 DefaultCloseTimeout 属性的值设置为 1 分钟。The default ChannelListenerBase() constructor sets the DefaultCloseTimeout property to a value of 1 minute. 如果要为此超时指定其他值,请使用 ChannelListenerBase(IDefaultCommunicationTimeouts)Use ChannelListenerBase(IDefaultCommunicationTimeouts) if you want to specify another value for this timeout.

适用于