OneWayBindingElement.BuildChannelFactory<TChannel> Methode

Definition

Initialisiert eine Kanalfactory zum Erstellen von Unidirektionale Kanälen aus dem Bindungskontext.

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)

Typparameter

TChannel

Der Kanaltyp, den die Factory erstellt.

Parameter

context
BindingContext

Der BindingContext Kontext für das Bindungselement.

Gibt zurück

Der IChannelFactory<TChannel> typ IChannel initialisiert aus der context.

Ausnahmen

context ist null.

Der Typ von TChannel ist nicht IOutputChannel.

Das innere Bindungselement unterstützt IDuplexSessionChannel oder IRequestChannelunterstützt nicht .

Hinweise

Diese Methode erstellt eine Kanalfactory, die verwendet wird, um einen Kanal zu erstellen, der ausgehende Nachrichten für diese Bindung verarbeitet.

Gilt für: