PeerTransportBindingElement.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, задающий контекст привязки для прослушивателя каналов.

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

Объект IChannelListener, содержащий новый прослушиватель каналов заданного типа.

Исключения

Значение параметра contextnull.

Тип канала, указанный этим контекстом привязки, не поддерживается.

Комментарии

Этот метод можно использовать для возврата прослушивателя каналов с целью получения сообщений на основе конфигурации элемента привязки транспорта.

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