Sdílet prostřednictvím


PeerCustomResolverBindingElement.BuildChannelListener<TChannel> Metoda

Definice

Vytvoří naslouchací proces kanálu zadaného typu pro příjem zpráv.

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

IChannel určuje typ kanálů, které se mají vytvořit.

Parametry

context
BindingContext

BindingContext , který určuje kontext vazby pro naslouchací proces kanálu.

Návraty

IChannelListener , který obsahuje nový naslouchací proces kanálu zadaného typu.

Poznámky

Tuto metodu lze použít k získání naslouchacího procesu kanálu pro příjem zpráv na základě konfigurace elementu transportní vazby.

Platí pro