CompositeDuplexBindingElement.BuildChannelListener(BindingContext) CompositeDuplexBindingElement.BuildChannelListener(BindingContext) CompositeDuplexBindingElement.BuildChannelListener(BindingContext) CompositeDuplexBindingElement.BuildChannelListener(BindingContext) Method

Définition

Retourne un écouteur de canal qui peut accepter un canal duplex composite.Returns a channel listener that can accept a composite duplex channel.

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

Paramètres de type

TChannel

IChannel accepté par l'écouteur.The IChannel that the listener accepts.

Paramètres

context
BindingContext BindingContext BindingContext BindingContext

BindingContext qui fournit le contexte requis pour générer l'écouteur de canal.The BindingContext that provides the context required to build the channel listener.

Retours

IChannelListener<TChannel> qui accepte un canal duplex composite de type TChannel.An IChannelListener<TChannel> that accepts a composite duplex channel of type TChannel.

Exceptions

TChannel n'est pas de type IInputChannel et n'est pas pris en charge.The TChannel is not of type IInputChannel and is not supported.

Remarques

Le contexte de génération requiert un IInputChannel pour TChannel.The build context requires an IInputChannel for the TChannel.

S’applique à