SecurityBindingElement.BuildChannelListener<TChannel> Method

Definition

Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in.

C#
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of channel listener.

Parameters

Returns

A channel listener based on the SecurityBindingElement settings and the binding context passed in.

Exceptions

context is null.

A channel of type TChannel is not supported.

Remarks

The channel factory created is a SOAP message security channel listener, which internally has a reference to the channel listener that corresponds to the binding context, which includes the transport channel listener.

This method does parameter error-checking, and then calls BuildChannelListenerCore. That method, when implemented in a derived class, creates a channel listener, which is used to create a channel that processes incoming messages for this binding.

Applies to

Produkt Versiounen
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1