CompositeDuplexBindingElement.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

處理站產生的 IChannel

參數

context
BindingContext

BindingContext,其提供建置通道處理站所需的內容。

傳回

IChannelFactory<TChannel>

IChannelFactory<TChannel>,它會建立 TChannel 型別的複合雙工通道。

例外狀況

contextnull

TChannel 的型別不是 IOutputChannel,並且不受支援。

備註

此建置內容需要 IOutputChannel 來做為 TChannel

適用於