SecurityBindingElement.BuildChannelListenerCore<TChannel> Metoda

Definicja

Po zaimplementowaniu program tworzy odbiornik kanału o określonym typie.

protected:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel abstract System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListenerCore(System::ServiceModel::Channels::BindingContext ^ context);
protected abstract System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListenerCore<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
abstract member BuildChannelListenerCore : 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)
Protected MustOverride Function BuildChannelListenerCore(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

Parametry typu

TChannel

Typ odbiornika kanału.

Parametry

context
BindingContext

Obiekt BindingContext.

Zwraca

Odbiornik kanału określonego typu.

Wyjątki

context to null.

Kanał typu TChannel nie jest obsługiwany.

Uwagi

BuildChannelListener, który sprawdza błąd, wywołuje tę metodę. Gdy ta metoda jest implementowana w klasie pochodnej, tworzy odbiornik kanału, który służy do tworzenia kanału, który przetwarza komunikaty wychodzące dla tego powiązania.

Dotyczy