SecurityBindingElement.BuildChannelListener<TChannel> Metoda

Definicja

Tworzy odbiornik kanału na SecurityBindingElement podstawie ustawień i kontekstu powiązania przekazanego.

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.

Parametry

context
BindingContext

Element BindingContext.

Zwraca

Odbiornik kanału oparty na SecurityBindingElement ustawieniach i kontekście powiązania przekazanym.

Wyjątki

context to null.

Kanał typu TChannel nie jest obsługiwany.

Uwagi

Utworzona fabryka kanałów to odbiornik kanału zabezpieczeń komunikatów PROTOKOŁU SOAP, który wewnętrznie ma odwołanie do odbiornika kanału, który odpowiada kontekstowi powiązania, który obejmuje odbiornik kanału transportu.

Ta metoda wykonuje sprawdzanie błędów parametrów, a następnie wywołuje metodę BuildChannelListenerCore. Ta metoda, po zaimplementowaniu w klasie pochodnej, tworzy odbiornik kanału, który służy do tworzenia kanału, który przetwarza komunikaty przychodzące dla tego powiązania.

Dotyczy