Sdílet prostřednictvím


OneWayBindingElement.BuildChannelListener<TChannel> Metoda

Definice

Inicializuje naslouchací proces kanálu pro příjem jednosměrných kanálů.

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ý má naslouchací proces přijímat.

Parametry

context
BindingContext

, BindingContext který poskytuje kontext pro element vazby.

Návraty

Typ IChannelListener<TChannel>IChannel inicializovaný z .context

Výjimky

context je null.

Typ TChannel není IInputChannel.

Vnitřní element vazby nepodporuje IDuplexSessionChannel nebo IRequestChannel.

Poznámky

Tato metoda vytvoří naslouchací proces kanálu, který slouží k vytvoření kanálu, který zpracovává příchozí zprávy pro tuto vazbu.

Platí pro