Share via


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>,可以创建 TChannel 类型的复合双工通道。

例外

contextnull

TChannel 的类型不为 IOutputChannel,不受支持。

注解

生成上下文需要 IOutputChannelTChannel

适用于