语言

OneWayBindingElement.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>从 .IChannel. 初始化的类型context。

例外

context 是 null。

类型 TChannel 不是 IOutputChannel。

注解

此方法创建通道工厂,该工厂用于创建处理此绑定传出消息的通道。

适用于