BindingContext.BuildInnerChannelListener<TChannel> Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public IChannelListener<TChannel> BuildInnerChannelListener<TChannel>()
where TChannel : class, IChannel

Return Value

Type: System.ServiceModel.Channels.IChannelListener<TChannel>

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

Type Parameters


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

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);

.NET Framework
Available since 3.0
Return to top