SecurityBindingElement.BuildChannelListenerCore<TChannel>(BindingContext) Método

Definição

Quando implementado, cria um ouvinte de canais de um tipo especificado.When implemented, creates a channel listener of a specified type.

protected:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel abstract System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListenerCore(System::ServiceModel::Channels::BindingContext ^ context);
protected abstract System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListenerCore<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListenerCore : 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)
Protected MustOverride Function BuildChannelListenerCore(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

Parâmetros de tipo

TChannel

O tipo de ouvinte de canal.The type of channel listener.

Parâmetros

context
BindingContext

O objeto BindingContext.The BindingContext object.

Retornos

IChannelListener<TChannel>

Um ouvinte de canais de um tipo especificado.A channel listener of a specified type.

Exceções

context é null.context is null.

Um canal do tipo TChannel não é compatível.A channel of type TChannel is not supported.

Comentários

BuildChannelListener, que faz a verificação de erro, chama esse método.BuildChannelListener, which does error checking, calls this method. Quando esse método é implementado em uma classe derivada, ele cria um ouvinte de canal, que é usado para criar um canal que processa mensagens de saída para essa associação.When this method is implemented in a derived class, it creates a channel listener, which is used to create a channel that processes outgoing messages for this binding.

Aplica-se a