BindingContext.BuildInnerChannelFactory<TChannel> Methode

Definition

Erstellt die interne Kanalfactory für Kanäle eines bestimmten Typs unterhalb der aktuellen Kanalfactory.

public:
generic <typename TChannel>
 System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildInnerChannelFactory();
public System.ServiceModel.Channels.IChannelFactory<TChannel> BuildInnerChannelFactory<TChannel>();
member this.BuildInnerChannelFactory : unit -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Function BuildInnerChannelFactory(Of TChannel) () As IChannelFactory(Of TChannel)

Typparameter

TChannel

Der Typ des IChannel Objekts, das von der inneren Kanalfactory erzeugt wird.

Gibt zurück

Der IChannelFactory<TChannel> Typ IChannel , der die interne Kanalfactory der aktuellen Kanalfactory darstellt.

Beispiele

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.BuildInnerChannelFactory<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.BuildInnerChannelFactory(Of IDuplexChannel)()

Gilt für: