DiscoveryClientBindingElement.BuildChannelListener<TChannel> Metoda

Definicja

Kanał klienta odnajdywania nie obsługuje tworzenia odbiornika kanałów. Tę metodę można zastąpić, aby zainicjować odbiornik kanału w celu akceptowania kanałów określonego typu z kontekstu powiązania.

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 odbiornika kanału do utworzenia.

Parametry

context
BindingContext

Kontekst powiązania.

Zwraca

IChannelListener<TChannel>

Odbiornik kanału określonego typu zainicjowany z kontekstu.

Dotyczy