SecurityBindingElement.BuildChannelListener<TChannel>(BindingContext) Método
Definição
Cria um ouvinte de canais com base nas configurações SecurityBindingElement e no contexto de associação transmitido.Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in.
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)
Parâmetros de tipo
- TChannel
O tipo de ouvinte de canal.The type of channel listener.
Parâmetros
- context
- BindingContext
O BindingContext.The BindingContext.
Retornos
Um ouvinte de canais com base nas configurações SecurityBindingElement e no contexto de associação transmitido.A channel listener based on the SecurityBindingElement settings and the binding context passed in.
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
A fábrica de canais criada é um ouvinte de canal de segurança de mensagem SOAP, que internamente tem uma referência ao ouvinte de canal que corresponde ao contexto de associação, que inclui o ouvinte de canal de transporte.The channel factory created is a SOAP message security channel listener, which internally has a reference to the channel listener that corresponds to the binding context, which includes the transport channel listener.
Esse método realiza a verificação de erros de parâmetro e, em seguida, chama BuildChannelListenerCore .This method does parameter error-checking, and then calls BuildChannelListenerCore. Esse método, quando implementado em uma classe derivada, cria um ouvinte de canal, que é usado para criar um canal que processa mensagens de entrada para essa associação.That method, when implemented in a derived class, creates a channel listener, which is used to create a channel that processes incoming messages for this binding.