Compartilhar via


BindingContext.BuildInnerChannelFactory<TChannel> Método

Definição

Cria a fábrica de canais interna para canais de um tipo especificado embaixo da fábrica de canais atual.

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

O tipo de IChannel objeto que a fábrica de canais interno produz.

Retornos

O IChannelFactory<TChannel> do tipo IChannel que representa a fábrica de canais interna da fábrica de canais atual.

Exemplos

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

Aplica-se a