ReliableSessionBindingElement.BuildChannelListener<TChannel>(BindingContext) Método

Definição

Retorna um ouvinte que aceita um canal de um tipo especificado que dá suporte a uma sessão confiável.Returns a listener that accepts a channel of a specified type that supports a reliable session.

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 IChannel que o ouvinte foi criado para aceitar.The IChannel that the listener is built to accept.

Parâmetros

context
BindingContext

O BindingContext que contém as informações necessárias para criar os ouvintes que podem aceitar canais do tipo TChannel.The BindingContext that contains the information required to build the listeners that can accept channels of type TChannel.

Retornos

IChannelListener<TChannel>

O IChannelListener<TChannel> do tipo IChannel inicializado do context.The IChannelListener<TChannel> of type IChannel initialized from the context.

Exceções

TChannel não é suportado.TChannel is not supported.

Comentários

O IChannel aceito pelo ouvinte é do tipo TChannel .The IChannel accepted by the listener is of type TChannel. Os tipos de TChannel suporte no servidor que hospeda o serviço dependem dos tipos de canais subjacentes usados para se conectar ao cliente.The types of TChannel supported on the server that hosts the service is dependent of the types of underlying channels used to connect to the client. A tabela a seguir indica quais tipos de canal de sessão confiáveis têm suporte como uma função dos canais subjacentes.The following table indicates what reliable session channel types are supported as a function of the underlying channels.

Suporte para tipos de sessão confiáveis TChannel por tipos de canal subjacentesSupport for Reliable Session TChannel Types by Underlying Channel Types IReplyChannelIReplyChannel IReplySessionChannelIReplySessionChannel IDuplexChannelIDuplexChannel IDuplexSessionChannelIDuplexSessionChannel
IInputSessionChannelIInputSessionChannel SimYes SimYes SimYes SimYes
IReplySessionChannelIReplySessionChannel SimYes SimYes NãoNo NãoNo
IDuplexSessionChannelIDuplexSessionChannel NãoNo NãoNo SimYes SimYes

Aplica-se a