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.
CompositeDuplexBindingElement::BuildChannelListener<TChannel> Method (BindingContext^)
.NET Framework (current version)
Returns a channel listener that can accept a composite duplex channel.
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 that provides the context required to build the channel listener.
Return Value
Type: System.ServiceModel.Channels::IChannelListener<TChannel>^An IChannelListener<TChannel> that accepts a composite duplex channel of type TChannel.
Type Parameters
- TChannel
The IChannel that the listener accepts.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
| ArgumentException | The TChannel is not of type IInputChannel and is not supported. |
The build context requires an IInputChannel for the TChannel.
.NET Framework
Available since 3.0
Available since 3.0
Show: