IChannelListener<TChannel> IChannelListener<TChannel> IChannelListener<TChannel> IChannelListener<TChannel> Interface

Definition

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

Type Parameters

TChannel

The type of channel that the channel listener accepts.

Derived
Implements

Remarks

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.

Methods

AcceptChannel() AcceptChannel() AcceptChannel() AcceptChannel()

Accepts a channel of a specified type for communication with a client.

AcceptChannel(TimeSpan) AcceptChannel(TimeSpan) AcceptChannel(TimeSpan) AcceptChannel(TimeSpan)

Accepts a channel of a specified type for communication with a client within a specified interval of time.

BeginAcceptChannel(AsyncCallback, Object) BeginAcceptChannel(AsyncCallback, Object) BeginAcceptChannel(AsyncCallback, Object) BeginAcceptChannel(AsyncCallback, Object)

Begins an asynchronous operation to accept a channel.

BeginAcceptChannel(TimeSpan, AsyncCallback, Object) BeginAcceptChannel(TimeSpan, AsyncCallback, Object) BeginAcceptChannel(TimeSpan, AsyncCallback, Object) BeginAcceptChannel(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to accept a channel within a specified interval of time.

EndAcceptChannel(IAsyncResult) EndAcceptChannel(IAsyncResult) EndAcceptChannel(IAsyncResult) EndAcceptChannel(IAsyncResult)

Completes an asynchronous operation to accept a channel.

Applies to