Compartir a través de


BindingContext.BuildInnerChannelFactory<TChannel> Método

Definición

Compila el generador de canales interno para los canales de un tipo especificado bajo el generador de canales actual.

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)

Parámetros de tipo

TChannel

El tipo del objeto IChannel que genera el generador de canales interno.

Devoluciones

IChannelFactory<TChannel> del tipo IChannel que representa el generador del canal interno del generador del canal actual.

Ejemplos

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)()

Se aplica a