ReliableSessionBindingElement.BuildChannelListener<TChannel> Метод

Определение

Возвращает прослушиватель, принимаюющий канал указанного типа, поддерживающий надежный сеанс.

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)

Параметры типа

TChannel

То IChannel , что прослушиватель создан для принятия.

Параметры

context
BindingContext

Сведения BindingContext , необходимые для создания прослушивателей, которые могут принимать каналы типа TChannel.

Возвращаемое значение

Тип IChannelListener<TChannel>IChannel, инициализированный из .context

Исключения

Функция TChannel не поддерживается.

Комментарии

Принятый IChannel прослушивателем тип TChannel. Типы поддерживаемых TChannel на сервере, на котором размещена служба, зависят от типов базовых каналов, используемых для подключения к клиенту. В следующей таблице указывается, какие типы каналов надежных сеансов поддерживаются в качестве функции базовых каналов.

Поддержка надежных типов сеансов TChannel по базовым типам каналов IReplyChannel IReplySessionChannel IDuplexChannel IDuplexSessionChannel
IInputSessionChannel Yes Yes Yes Yes
IReplySessionChannel Yes Yes Нет Нет
IDuplexSessionChannel Нет Нет Yes Yes

Применяется к