ReliableSessionBindingElement.BuildChannelListener<TChannel> Metoda

Definicja

Zwraca odbiornik, który akceptuje kanał określonego typu, który obsługuje niezawodną sesję.

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

Odbiornik IChannel , który jest kompilowany do akceptowania.

Parametry

context
BindingContext

Element BindingContext zawierający informacje wymagane do skompilowania odbiorników, które mogą akceptować kanały typu TChannel.

Zwraca

IChannel Typ IChannelListener<TChannel> zainicjowany z klasy context.

Wyjątki

TChannel program nie jest obsługiwany.

Uwagi

Akceptowany IChannel przez odbiornik jest typu TChannel. Typy obsługiwanych TChannel na serwerze hostujących usługę są zależne od typów kanałów bazowych używanych do nawiązywania połączenia z klientem. Poniższa tabela wskazuje, jakie typy kanałów sesji niezawodnej są obsługiwane jako funkcja kanałów bazowych.

Obsługa niezawodnych typów sesji TChannel według bazowych typów kanałów Ireplychannel Ireplysessionchannel Iduplexchannel Iduplexsessionchannel
Iinputsessionchannel Tak Tak Tak Tak
Ireplysessionchannel Tak Tak Nie Nie
Iduplexsessionchannel Nie Nie Tak Tak

Dotyczy