MsmqTransportBindingElement.BuildChannelListener<TChannel> Método

Definición

Crea un agente de escucha de canal utilizando el contexto proporcionado.

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

El tipo de canal que se va a utilizar para compilar el agente de escucha del canal. Los tipos de canal permitidos son IInputSessionChannel o una clase IInputChannel.

Parámetros

context
BindingContext

El BindingContext con el que crear el agente de escucha de canal.

Devoluciones

Un agente de escucha del canal de Message Queuing (MSMQ) que se puede utilizar para crear los canales para recibir mensajes a las aplicaciones de MSMQ existentes.

Excepciones

El valor de contexto es null.

TChannel no es IInputChannel ni IInputSessionChannel.

ExactlyOnce es true y Durable es false.

O bien

Cola no legible.

O bien

ExactlyOnce es true y la cola es no transaccional.

O bien

ExactlyOnce es false y la cola es transaccional.

O bien

ReceiveErrorHandling se define como Move y el nombre de la cola contiene un “;” en Windows Vista.

O bien

ExactlyOnce está definido como true y no puede abrir la subcola de reintento en Windows Vista.

O bien

ReceiveErrorHandling se define como Reject o Move y la plataforma es Windows Vista.

O bien

MsmqTransportSecurity.MsmqAuthenticationMode se establece como WindowsDomain y se define si MSMQ se instala sin la integración de ActiveDirectory.

O bien

MsmqTransportSecurity.MsmqAuthenticationMode es None y MsmqTransportSecurity.MsmqProtectionLevel no es None.

O bien

MsmqTransportSecurity.MsmqAuthenticationMode es Certificate o WindowsDomain y MsmqTransportSecurity.MsmqProtectionLevel es None.

Ejemplos

transportBindingElement.BuildChannelListener<IInputChannel>(context);

Se aplica a