Partilhar via


TcpRelayTransportBindingElement.BuildChannelListener<TChannel> Método

Definição

Cria um ouvinte de canais do tipo especificado.

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 fábrica de canais.

Parâmetros

context
BindingContext

Descreve as associações, comportamentos, contratos e outras informações necessárias para criar a fábrica de canais.

Retornos

IChannelListener<TChannel>

Um ouvinte de canais do tipo especificado.

Exceções

Quando a proteção de transporte está habilitada e o Modo de Conexão é definido como Híbrido ou Direto.

Aplica-se a