Condividi tramite


BindingContext.BuildInnerChannelFactory<TChannel> Metodo

Definizione

Compila la channel factory interna per i canali di un tipo specificato sotto la channel factory corrente.

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)

Parametri di tipo

TChannel

Tipo di oggetto IChannel prodotto dalla channel factory interna.

Restituisce

IChannelFactory<TChannel> di tipo IChannel che rappresenta la channel factory interna della channel factory corrente.

Esempio

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

Si applica a