CompositeDuplexBindingElement.BuildChannelFactory<TChannel> Méthode

Définition

Retourne une fabrique de canal qui peut créer un canal duplex composite.

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)

Paramètres de type

TChannel

IChannel produit par la fabrique.

Paramètres

context
BindingContext

BindingContext qui fournit le contexte requis pour générer la fabrication de canal.

Retours

IChannelFactory<TChannel>

IChannelFactory<TChannel> qui crée un canal duplex composite de type TChannel.

Exceptions

context a la valeur null.

TChannel n'est pas de type IOutputChannel et n'est pas pris en charge.

Remarques

Le contexte de génération requiert un IOutputChannel pour TChannel.

S’applique à