IDuplexSession Interface

 

Defines the interface for the session implemented on each side of a bi-directional communication between messaging endpoints.

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

public interface IDuplexSession : IInputSession, ISession, IOutputSession

NameDescription
System_CAPS_pubpropertyId

Gets the ID that uniquely identifies the session. (Inherited from ISession.)

NameDescription
System_CAPS_pubmethodBeginCloseOutputSession(AsyncCallback, Object)

Begins an asynchronous operation to terminate the outbound session.

System_CAPS_pubmethodBeginCloseOutputSession(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.

System_CAPS_pubmethodCloseOutputSession()

Terminates the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session.

System_CAPS_pubmethodCloseOutputSession(TimeSpan)

Terminates the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session within a specified interval of time.

System_CAPS_pubmethodEndCloseOutputSession(IAsyncResult)

Completes an asynchronous operation to terminate the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session.

The IDuplexSession interface is the union of the inbound session, defined by the IInputSession interface, and the outbound session, defined by the IOutputSession interface. Either the inbound session or outbound session can be terminated independently of the other. The outbound session can be terminated synchronously by calling CloseOutputSession or asynchronously by calling BeginCloseOutputSession.

The inbound session can be remotely terminated. The Receive associated with the inbound session starts returning null when that session is shutdown.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: