ChannelDispatcher.OnOpen(TimeSpan) 方法

定義

開啟與通道發送器相關聯的接聽程式。Opens the listener associated with the channel dispatcher.

protected:
 override void OnOpen(TimeSpan timeout);
protected override void OnOpen (TimeSpan timeout);
override this.OnOpen : TimeSpan -> unit
Protected Overrides Sub OnOpen (timeout As TimeSpan)

參數

timeout
TimeSpan

TimeSpan,其中指定允許開啟接聽程式的時間間隔。The TimeSpan that specifies the interval of time allowed for the listener to open.

例外狀況

主機或訊息版本為 nullThe host or the message version is null.

備註

呼叫這個方法時,通道發送器必須與非 null 的服務主機產生關聯,而且訊息版本必須設定為非 null 值。The channel dispatcher must be associated with a non-null service host when this method is called and message version must be set to a non-null value.

適用於