UdpTransportBindingElement.BuildChannelListener<TChannel>(BindingContext) Método

Definición

Inicializa una escucha de canales para aceptar canales de un tipo especificado a partir del contexto de enlace.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)

Parámetros de tipo

TChannel

El tipo de canal que acepta la escucha.The type of channel the listener is built to accept.

Parámetros

context
BindingContext

BindingContext que proporciona el contexto para el elemento de enlace.The BindingContext that provides context for the binding element.

Devoluciones

IChannelListener<TChannel>

Interfaz IChannelListener<TChannel> de tipo TChannel inicializada a partir del contexto.The IChannelListener<TChannel> of type TChannel initialized from the context.

Se aplica a