SecurityBindingElement.BuildChannelListener<TChannel> Method (BindingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public override IChannelListener<TChannel> BuildChannelListener<TChannel>(
	BindingContext context
)
where TChannel : class, IChannel

Return Value

Type: System.ServiceModel.Channels.IChannelListener<TChannel>

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

Type Parameters

TChannel

The type of channel listener.

Exception Condition
ArgumentNullException

context is null.

ArgumentException

A channel of type TChannel is not supported.

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<TChannel>. 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.

.NET Framework
Available since 3.0
Return to top
Show: