PeerTransportBindingElement.CanBuildChannelListener<TChannel> Метод

Определение

Определяет, можно ли создать прослушиватель каналов заданного типа.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean

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

TChannel

Объект IChannel, задающий тип прослушивателя каналов.

Параметры

context
BindingContext

Объект BindingContext, задающий контекст привязки для прослушивателя каналов.

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

Значение true, если этот элемент привязки может создать прослушиватель каналов заданного типа; в противном случае — false.

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