Compartir a través de


CompositeDuplexBindingElement.BuildChannelListener<TChannel> Método

Definición

Devuelve una escucha del canal que puede aceptar un canal dúplex compuesto.

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

IChannel que la escucha acepta.

Parámetros

context
BindingContext

BindingContext que proporciona el contexto requerido para crear la escucha de canales.

Devoluciones

Un IChannelListener<TChannel> que acepta un canal dúplex compuesto de tipo TChannel.

Excepciones

context es null.

TChannel no es del tipo IInputChannel y no está admitido.

Comentarios

El contexto de la creación requiere IInputChannel para TChannel.

Se aplica a