IChannelListener(TChannel) Interface
TOC
Collapse the table of content
Expand the table of content

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)

public interface IChannelListener<TChannel> : IChannelListener, 
	ICommunicationObject
where TChannel : class, IChannel

Type Parameters

TChannel

The type of channel that the channel listener accepts.

NameDescription
System_CAPS_pubpropertyState

Gets the current state of the communication-oriented object.(Inherited from ICommunicationObject.)

System_CAPS_pubpropertyUri

Gets the URI on which the listeners that are generated by the factory listen.(Inherited from IChannelListener.)

NameDescription
System_CAPS_pubmethodAbort()

Causes a communication object to transition immediately from its current state into the closed state. (Inherited from ICommunicationObject.)

System_CAPS_pubmethodAcceptChannel()

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

System_CAPS_pubmethodAcceptChannel(TimeSpan)

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

System_CAPS_pubmethodBeginAcceptChannel(AsyncCallback, Object)

Begins an asynchronous operation to accept a channel.

System_CAPS_pubmethodBeginAcceptChannel(TimeSpan, AsyncCallback, Object)

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

System_CAPS_pubmethodBeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodBeginClose(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to close a communication object with a specified timeout.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodBeginOpen(AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodBeginOpen(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to open a communication object within a specified interval of time.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodBeginWaitForChannel(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to wait for a channel to arrive that must be completed within a specified interval of time.(Inherited from IChannelListener.)

System_CAPS_pubmethodClose()

Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)

System_CAPS_pubmethodClose(TimeSpan)

Causes a communication object to transition from its current state into the closed state. (Inherited from ICommunicationObject.)

System_CAPS_pubmethodEndAcceptChannel(IAsyncResult)

Completes an asynchronous operation to accept a channel.

System_CAPS_pubmethodEndClose(IAsyncResult)

Completes an asynchronous operation to close a communication object.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodEndOpen(IAsyncResult)

Completes an asynchronous operation to open a communication object.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodEndWaitForChannel(IAsyncResult)

Completes an asynchronous operation to wait for channels to arrive.(Inherited from IChannelListener.)

System_CAPS_pubmethodGetProperty<T>()

Returns a typed object requested, if present, from the appropriate layer in the channel stack.(Inherited from IChannelListener.)

System_CAPS_pubmethodOpen()

Causes a communication object to transition from the created state into the opened state. (Inherited from ICommunicationObject.)

System_CAPS_pubmethodOpen(TimeSpan)

Causes a communication object to transition from the created state into the opened state within a specified interval of time.(Inherited from ICommunicationObject.)

System_CAPS_pubmethodWaitForChannel(TimeSpan)

Waits for a channel to arrive.(Inherited from IChannelListener.)

NameDescription
System_CAPS_pubeventClosed

Occurs when the communication object completes its transition from the closing state into the closed state.(Inherited from ICommunicationObject.)

System_CAPS_pubeventClosing

Occurs when the communication object first enters the closing state.(Inherited from ICommunicationObject.)

System_CAPS_pubeventFaulted

Occurs when the communication object first enters the faulted state.(Inherited from ICommunicationObject.)

System_CAPS_pubeventOpened

Occurs when the communication object completes its transition from the opening state into the opened state.(Inherited from ICommunicationObject.)

System_CAPS_pubeventOpening

Occurs when the communication object first enters the opening state.(Inherited from ICommunicationObject.)

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft