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.

Исключения

context имеет значение null.

Параметр TChannel не принадлежит к типу IOutputChannel и не поддерживается.

Комментарии

Контекст построения требует объект IOutputChannel для параметра TChannel.

Применяется к