SecurityBindingElement.BuildChannelListenerCore<TChannel> Method (BindingContext)


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

When implemented, creates a channel listener of a specified type.

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

protected abstract IChannelListener<TChannel> BuildChannelListenerCore<TChannel>(
	BindingContext context
where TChannel : class, IChannel

Return Value

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

A channel listener of a specified type.

Type Parameters


The type of channel listener.

Exception Condition

context is null.


A channel of type TChannel is not supported.

BuildChannelListener<TChannel>, which does error checking, calls this method. When this method is implemented in a derived class, it creates a channel listener, which is used to create a channel that processes outgoing messages for this binding.

.NET Framework
Available since 3.0
Return to top