BindingContext.BuildInnerChannelListener<TChannel> Méthode

Définition

Génère un écouteur de canal interne qui écoute un type spécifié de canal.Builds an inner channel listener that listens for a specified type of channel.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildInnerChannelListener();
public System.ServiceModel.Channels.IChannelListener<TChannel> BuildInnerChannelListener<TChannel> () where TChannel : class, System.ServiceModel.Channels.IChannel;
member this.BuildInnerChannelListener : unit -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Function BuildInnerChannelListener(Of TChannel As {Class, IChannel}) () As IChannelListener(Of TChannel)

Paramètres de type

TChannel

Le type d'objet IChannel que l'écouteur de canal interne écoute.The type of IChannel object for which the inner channel listener listens.

Retours

La IChannelListener<TChannel> de type IChannel qui représente l'écouteur de canal interne de la fabrique de canal actuelle.The IChannelListener<TChannel> of type IChannel that represents the inner channel listener of the current channel factory.

Exemples

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

S’applique à