Share via


ReliableSessionBindingElement.BuildChannelListener<TChannel> Metoda

Definice

Vrátí naslouchací proces, který přijímá kanál zadaného typu, který podporuje spolehlivou relaci.

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

To IChannel , co je naslouchací proces sestaven tak, aby přijímal.

Parametry

context
BindingContext

Obsahuje BindingContext informace potřebné k sestavení naslouchacích procesů, které mohou přijímat kanály typu TChannel.

Návraty

Typ IChannelListener<TChannel> typu IChannel inicializovaný z context.

Výjimky

TChannel se nepodporuje.

Poznámky

Naslouchací IChannel proces přijímá typ TChannel. Typy podporovaných TChannel na serveru, který hostuje službu, závisí na typech podkladových kanálů používaných pro připojení ke klientovi. Následující tabulka uvádí, jaké spolehlivé typy kanálů relací jsou podporovány jako funkce podkladových kanálů.

Podpora spolehlivých typů relací TChannel podle základních typů kanálů IReplyChannel Ireplysessionchannel IDuplexChannel IDuplexSessionChannel
IInputSessionChannel Yes Yes Yes Yes
Ireplysessionchannel Yes Yes No No
IDuplexSessionChannel No No Yes Yes

Platí pro