IDuplexSession Interface
Defines the interface for the session implemented on each side of a bi-directional communication between messaging endpoints.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The IDuplexSession type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | BeginCloseOutputSession(AsyncCallback, Object) | Begins an asynchronous operation to terminate the outbound session. |
![]() ![]() | BeginCloseOutputSession(TimeSpan, AsyncCallback, Object) | Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete. |
![]() ![]() | CloseOutputSession() | Terminates the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session. |
![]() ![]() | CloseOutputSession(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. |
![]() ![]() | EndCloseOutputSession | 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 nullptr when that session is shutdown.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

