ChannelListenerBase.OnWaitForChannel(TimeSpan) 方法

定义

在派生类中重写时,在等待通道到达时提供一个可扩展点。

protected:
 abstract bool OnWaitForChannel(TimeSpan timeout);
protected abstract bool OnWaitForChannel (TimeSpan timeout);
abstract member OnWaitForChannel : TimeSpan -> bool
Protected MustOverride Function OnWaitForChannel (timeout As TimeSpan) As Boolean

参数

timeout
TimeSpan

TimeSpan,指定在超时前可用于完成等待通道操作的时间长度。

返回

Boolean

如果方法在 true 指定的时间间隔结束前完成,则为 timeout;否则为 false

适用于