CompositeDuplexBindingElement.BuildChannelFactory<TChannel> Methode

Definitie

Retourneert een kanaalfactory die een samengesteld duplex-kanaal kan maken.

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)

Type parameters

TChannel

De IChannel fabriek produceert.

Parameters

context
BindingContext

De BindingContext context die nodig is om de kanaalfactory te bouwen.

Retouren

Een IChannelFactory<TChannel> waarmee een samengesteld dubbelzijdig kanaal van het type TChannelwordt gemaakt.

Uitzonderingen

context is null.

Het TChannel is niet van het type IOutputChannel en wordt niet ondersteund.

Opmerkingen

De buildcontext vereist een IOutputChannel voor de TChannel.

Van toepassing op