SecurityBindingElement::BuildChannelListenerCore<TChannel> Method (BindingContext^)
.NET Framework (current version)
When implemented, creates a channel listener of a specified type.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
protected: generic<typename TChannel> where TChannel : ref class, IChannel virtual IChannelListener<TChannel>^ BuildChannelListenerCore( BindingContext^ context ) abstract
Parameters
- context
-
Type:
System.ServiceModel.Channels::BindingContext^
The BindingContext object.
Return Value
Type: System.ServiceModel.Channels::IChannelListener<TChannel>^A channel listener of a specified type.
Type Parameters
- TChannel
The type of channel listener.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
| ArgumentException | A channel of type TChannel is not supported. |
BuildChannelListener<TChannel>, which does error checking, calls this method. When this method is implemented in a derived class, it creates a channel listener, which is used to create a channel that processes outgoing messages for this binding.
.NET Framework
Available since 3.0
Available since 3.0
Show: