BindingContext.BuildInnerChannelListener<TChannel> Method

Definition

Builds an inner channel listener that listens for a specified type of channel.

C#
public System.ServiceModel.Channels.IChannelListener<TChannel> BuildInnerChannelListener<TChannel>() where TChannel : class, System.ServiceModel.Channels.IChannel;

Type Parameters

TChannel

The type of IChannel object for which the inner channel listener listens.

Returns

The IChannelListener<TChannel> of type IChannel that represents the inner channel listener of the current channel factory.

Examples

C#
CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.BuildInnerChannelListener<IDuplexChannel>();

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