Defines the interface that must be implemented by channel listeners to accept type-specific channels.
generic <typename TChannel> where TChannel : class, IChannelpublic interface class IChannelListener : System::ServiceModel::Channels::IChannelListener
public interface IChannelListener<TChannel> : System.ServiceModel.Channels.IChannelListener where TChannel : class, IChannel
type IChannelListener<'Channel (requires 'Channel : null and 'Channel :> IChannel)> = interface interface IChannelListener interface ICommunicationObject
Public Interface IChannelListener(Of TChannel) Implements IChannelListener
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.