Sdílet prostřednictvím


MsmqTransportBindingElement.BuildChannelListener<TChannel> Metoda

Definice

Vytvoří naslouchací proces kanálu pomocí zadaného kontextu.

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)

Parametry typu

TChannel

Typ kanálu, který se má použít k sestavení naslouchacího procesu kanálu. Povolené typy kanálů jsou IInputSessionChannel nebo IInputChannel třída.

Parametry

context
BindingContext

Pomocí BindingContext kterého se sestaví naslouchací proces kanálu.

Návraty

Naslouchací proces řízení front zpráv (MSMQ), který lze použít k vytváření kanálů pro příjem zpráv z existujících aplikací MSMQ.

Výjimky

Hodnota kontextu je null.

TChannel není IInputChannel ani IInputSessionChannel.

Hodnota ExactlyOnce je true a Durable je false.

-nebo-

Fronta není čitelná.

-nebo-

Hodnota ExactlyOnce je true a fronta je neaktuální.

-nebo-

Hodnota ExactlyOnce je false a fronta je transakční.

-nebo-

ReceiveErrorHandling je nastavena na Přesunout a název fronty obsahuje ";" v systému Windows Vista.

-nebo-

Funkce ExactlyOnce je nastavena na hodnotu true a nemůže otevřít pod frontu opakování v systému Windows Vista.

-nebo-

ReceiveErrorHandling je nastavený na Odmítnout nebo Přesunout a platformou je Windows Vista.

-nebo-

MsmqTransportSecurity.MsmqAuthenticationMode je nastavený na WindowsDomain a MSMQ se nainstaluje bez integrace ActiveDirectory.

-nebo-

MsmqTransportSecurity.MsmqAuthenticationMode je None a MsmqTransportSecurity.MsmqProtectionLevel není None.

-nebo-

MsmqTransportSecurity.MsmqAuthenticationMode je Certificate nebo WindowsDomain a MsmqTransportSecurity.MsmqProtectionLevel je None.

Příklady

transportBindingElement.BuildChannelListener<IInputChannel>(context);

Platí pro