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

返回

IChannelFactory<TChannel>

TChannel 类型的 IChannelFactory<TChannel>(从上下文中初始化)。

适用于