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

Definição

Cria um ouvinte de canais de um tipo especificado que pode ser usado para criar um canal.Creates a channel listener of a specified type that can be used to create a 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)

Parâmetros de tipo

TChannel

Tipo de canal.Type of channel.

Parâmetros

context
BindingContext

Membros do BindingContext que descrevem associações, comportamentos, contratos e outras informações necessárias para criar a fábrica de canais.BindingContext members that describe bindings, behaviors, contracts and other information required to create the channel factory.

Retornos

IChannelListener<TChannel>

Um ouvinte de canais do tipo especificado.A channel listener of the specified type.

Exceções

context não pode ser null.context cannot be null.

Comentários

Um ouvinte de canal configurado com base nos valores definidos no elemento de associação de transporte.A channel listener that is configured based on the values set in the transport binding element.

Aplica-se a