PeerCustomResolverBindingElement.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.
Tworzy odbiornik kanału określonego typu na potrzeby otrzymywania komunikatów.
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
IChannel Określa typ kanałów do wyprodukowania.
Parametry
- context
- BindingContext
BindingContext Określa kontekst powiązania dla odbiornika kanału.
Zwraca
IChannelListener zawiera nowy odbiornik kanału określonego typu.
Uwagi
Ta metoda może służyć do uzyskania odbiornika kanałów na potrzeby otrzymywania komunikatów na podstawie konfiguracji elementu powiązania transportowego.