SecurityBindingElement::BuildChannelListener<TChannel> Method (BindingContext^)
Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: generic<typename TChannel> where TChannel : ref class, IChannel virtual IChannelListener<TChannel>^ BuildChannelListener( BindingContext^ context ) override
Parameters
- context
-
Type:
System.ServiceModel.Channels::BindingContext^
The BindingContext.
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.
Available since 3.0