OneWayBindingElement.BuildChannelListener<TChannel> Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje odbiornik kanału do akceptowania kanałów jednokierunkowych.
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)
Parametry typu
- TChannel
Typ kanału, który ma zostać zaakceptowany przez odbiornik.
Parametry
- context
- BindingContext
BindingContextZapewnia kontekst dla elementu powiązania.
Zwraca
IChannelListener<TChannel>Typ IChannel zainicjowany z context
.
Wyjątki
context
to null
.
Typ TChannel
nie jest IInputChannel .
Wewnętrzny element powiązania nie obsługuje IDuplexSessionChannel ani IRequestChannel .
Uwagi
Ta metoda tworzy odbiornik kanału, który służy do tworzenia kanału, który przetwarza komunikaty przychodzące dla tego powiązania.