Share via


UdpTransportBindingElement.BuildChannelListener<TChannel> Método

Definición

Inicializa una escucha de canales para aceptar canales de un tipo especificado a partir del contexto de enlace.

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.

Parámetros

context
BindingContext

BindingContext que proporciona el contexto para el elemento de enlace.

Devoluciones

IChannelListener<TChannel>

Interfaz IChannelListener<TChannel> de tipo TChannel inicializada a partir del contexto.

Se aplica a