ReliableSessionBindingElement.BuildChannelFactory<TChannel> 方法

定義

傳回處理站,該處理站會建立支援可靠工作階段之指定型別的通道。

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

類型參數

TChannel

處理站建置之通道的型別。

參數

context
BindingContext

BindingContext,其中包含建置可產生 TChannel 型別通道之處理站時的必要資訊。

傳回

型別 的 ,是從 初始化的。

例外狀況

不支援 TChannel

備註

由處理站所產生的 IChannel 屬於型別 TChannel。 用戶端上支援的 TChannel 型別與連接至服務之基礎通道型別相依。 下表指出支援提供基礎通道功能的可靠工作階段通道型別。

基礎通道型別支援的可靠工作階段 TChannel 型別 IRequestChannel IRequestSessionChannel IDuplexChannel IDuplexSessionChannel
IOutputSessionChannel Yes Yes
IRequestSessionChannel
IDuplexSessionChannel No Yes Yes

適用於