SecurityBindingElement.BuildChannelListenerCore<TChannel> Метод

Определение

При реализации создает прослушиватель каналов заданного типа.

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)

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

TChannel

Тип прослушивателя каналов.

Параметры

context
BindingContext

Объект BindingContext.

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

Прослушиватель каналов заданного типа.

Исключения

context имеет значение null.

Канал типа TChannel не поддерживается.

Комментарии

BuildChannelListener, который выполняет проверку ошибок, вызывает этот метод. При реализации этого метода в производном классе он создает прослушиватель каналов, который используется для создания канала, обрабатывающего исходящие сообщения для этой привязки.

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