Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityBindingElement::BuildChannelListener<TChannel> Method (BindingContext^)

 

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:
generic<typename TChannel>
where TChannel : ref class, IChannel
virtual IChannelListener<TChannel>^ BuildChannelListener(
	BindingContext^ context
) override

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:
© 2017 Microsoft