ChannelFactoryBase.OnClose(TimeSpan) 方法
定义
在通信对象转换为打开状态(此过程必须在指定时间间隔内完成)后插入对通信对象的处理。Inserts processing on a communication object after it transitions into the opening state which must complete 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 how long the on close operation has to complete before timing out.
注解
默认实现为空。The default implementation is empty.