UdpTransportBindingElement.BuildChannelListener<TChannel>(BindingContext) Metoda

Definice

Inicializuje naslouchací proces kanálu, aby přijímal kanály zadaného typu z kontextu vazby.Initializes a channel listener to accept channels of a specified type from the binding context.

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 kanálu, který má naslouchací proces sestavit, aby přijímal.The type of channel the listener is built to accept.

Parametry

context
BindingContext

BindingContextObjekt, který poskytuje kontext pro prvek vazby.The BindingContext that provides context for the binding element.

Návraty

IChannelListener<TChannel>

IChannelListener<TChannel>Typ TChannel inicializovaný z kontextu.The IChannelListener<TChannel> of type TChannel initialized from the context.

Platí pro