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

绑定上下文。

返回

从绑定上下文初始化的指定类型的通道工厂。

适用于