ChannelDispatcher.OnClose(TimeSpan) 方法
定义
在指定的时间间隔内关闭与调度程序关联的通道侦听程序。Closes the channel listener associated with the dispatcher within a specified interval of time.
protected:
override void OnClose(TimeSpan timeout);
protected override void OnClose (TimeSpan timeout);
override this.OnClose : TimeSpan -> unit
Protected Overrides Sub OnClose (timeout As TimeSpan)
参数
- timeout
- TimeSpan
指定为关闭侦听程序预留的时间间隔的 TimeSpan。The TimeSpan that specifies the interval of time allowed for the listener to close.