IChannelListener<TChannel>.AcceptChannel 方法

定義

接受指定之型別的通道,以便與用戶端進行通訊。

多載

AcceptChannel()

接受指定之型別的通道,以便與用戶端進行通訊。

AcceptChannel(TimeSpan)

接受指定之型別的通道,以便在指定的時間間隔內與用戶端進行通訊。

備註

建議使用具有明確逾時的 AcceptChannel(TimeSpan) 多載。 針對該方法指定的 timeout 會覆寫由系統針對服務所設定之所有預設逾時。

AcceptChannel()

來源:
IChannelListener.cs
來源:
IChannelListener.cs
來源:
IChannelListener.cs

接受指定之型別的通道,以便與用戶端進行通訊。

public:
 TChannel AcceptChannel();
public TChannel AcceptChannel ();
abstract member AcceptChannel : unit -> 'Channel
Public Function AcceptChannel () As TChannel

傳回

TChannel

接聽程式接受之 TChannel 型別的通道。

備註

建議使用具有明確逾時的 AcceptChannel(TimeSpan) 多載。 針對該方法指定的 timeout 會覆寫由系統針對服務所設定之所有預設逾時。

適用於

AcceptChannel(TimeSpan)

來源:
IChannelListener.cs
來源:
IChannelListener.cs
來源:
IChannelListener.cs

接受指定之型別的通道,以便在指定的時間間隔內與用戶端進行通訊。

public:
 TChannel AcceptChannel(TimeSpan timeout);
public TChannel AcceptChannel (TimeSpan timeout);
abstract member AcceptChannel : TimeSpan -> 'Channel
Public Function AcceptChannel (timeout As TimeSpan) As TChannel

參數

timeout
TimeSpan

指定在逾時前必須等候通道作業完成之時間的 TimeSpan

傳回

TChannel

接聽程式接受之 TChannel 型別的通道。

備註

建議使用具有明確逾時的這個多載,而不是 AcceptChannel()。 針對這個方法指定的 timeout 會覆寫由系統針對服務所設定之所有預設逾時。

適用於