DiscoveryClientBindingElement.CanBuildChannelListener<TChannel> Metoda

Definicja

Ponieważ budowanie odbiornika kanałów nie jest obsługiwane przez kanał klienta odnajdowania, ta metoda zawsze zwraca wartość false . Można rozszerzyć, aby zwrócić wartość wskazującą, czy element powiązania może utworzyć odbiornik dla określonego typu kanału.

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

Parametry typu

TChannel

Typ kanału, który akceptuje odbiornik.

Parametry

context
BindingContext

Kontekst powiązania.

Zwraca

Boolean

true Jeśli IChannelListener<TChannel> określony typ może być skompilowany przez element Binding, w przeciwnym razie false .

Dotyczy