WindowsStreamSecurityBindingElement.BuildChannelListener<TChannel>(BindingContext) Método
Definição
Cria um ouvinte de canais do tipo especificado.Creates a channel listener of the specified type.
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
Tipo de ouvinte de canal.Type of channel listener.
Parâmetros
- context
- BindingContext
Membros do BindingContext que descrevem associações, comportamentos, contratos e outras informações necessárias para criar o ouvinte de canais.BindingContext members that describe bindings, behaviors, contracts, and other information required to create the channel listener.
Retornos
Retorna um ouvinte de canais do tipo especificado.Returns a channel listener of the specified type. Este método adiciona essa instância de classe aos BindingParameters e delega para o método de build BuildInnerChannelListener<TChannel>().This method adds this class instance to the BindingParameters and delegates to the build method BuildInnerChannelListener<TChannel>().
Exceções
context não pode ser null.context cannot be null.
Comentários
Esse método cria um ouvinte de canal, que é usado para criar um canal que processa mensagens de entrada para essa associação.This method creates a channel listener, which is used to create a channel that processes incoming messages for this binding.