OneWayBindingElement.BuildChannelFactory<TChannel> Methode

Definitie

Initialiseert een kanaalfactory voor het produceren van kanalen in één richting vanuit de bindingscontext.

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

Het type kanaal dat door de fabriek wordt gebouwd.

Parameters

context
BindingContext

Het BindingContext element dat context biedt voor het bindingselement.

Retouren

Het IChannelFactory<TChannel> type IChannel geïnitialiseerd vanaf de context.

Uitzonderingen

context is null.

Het type TChannel is niet IOutputChannel.

Het binnenste bindingselement biedt geen ondersteuning IDuplexSessionChannel voor of IRequestChannel.

Opmerkingen

Met deze methode maakt u een kanaalfactory die wordt gebruikt om een kanaal te maken dat uitgaande berichten voor deze binding verwerkt.

Van toepassing op