CompositeDuplexBindingElement.BuildChannelListener<TChannel> Method

Definition

Returns a channel listener that can accept a composite duplex channel.

C#
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel>(System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The IChannel that the listener accepts.

Parameters

context
BindingContext

The BindingContext that provides the context required to build the channel listener.

Returns

An IChannelListener<TChannel> that accepts a composite duplex channel of type TChannel.

Exceptions

context is null.

The TChannel is not of type IInputChannel and is not supported.

Remarks

The build context requires an IInputChannel for the TChannel.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1