BindingContext.BuildInnerChannelListener<TChannel> Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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

TChannel

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);
context.BuildInnerChannelListener<IDuplexChannel>();

.NET Framework
Available since 3.0
Return to top
Show: