Export (0) Print
Expand All

BindingContext.BuildInnerChannelListener<TChannel> Method

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

Type Parameters

TChannel

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

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft