This documentation is archived and is not being maintained.

IChannelListener<TChannel> Interface

Defines the interface that must be implemented by channel listeners to accept type-specific channels.

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

generic<typename TChannel>
where TChannel : ref class, IChannel 
public interface class IChannelListener : IChannelListener, 

Type Parameters


The type of channel that the channel listener accepts.

Listener factories that implement the IChannelListener or IChannelListener<TChannel> interfaces provide services with the mechanisms used to accept the channels produced by clients that initiate and enable communication with a service.

Implementing the IChannelListener<TChannel> contract allows users to accept multiple channels of a given type without having to specify the channel type each time. In other words, defining the channel type as a generic parameter for the IChannelListener<TChannel> interface means that it is not necessary to pass the type into the AcceptChannel methods. If users want to accept different channel types, they can create additional channel listeners for each type of channel required.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

.NET Compact Framework

Supported in: 3.5