ChannelFactory.EnsureOpened 方法

定义

打开尚未打开的当前通道工厂。

protected public:
 void EnsureOpened();
protected:
 void EnsureOpened();
protected internal void EnsureOpened ();
protected void EnsureOpened ();
member this.EnsureOpened : unit -> unit
Protected Friend Sub EnsureOpened ()
Protected Sub EnsureOpened ()

例外

当前工厂的状态为正在关闭或已关闭,因此无法打开。

注解

打开通道工厂之前,请检查其状态不是 ClosedClosingOpened

适用于