MtomMessageEncodingBindingElement.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

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

Параметры

context
BindingContext

Объект BindingContext для прослушивателя.

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

IChannelListener<TChannel>

Объект IChannelListener<TChannel> типа TChannel для указанного контекста.

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