IDuplexSession Interface
TOC
Collapse the table of content
Expand the table of content

IDuplexSession Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

No code example is currently available or this language may not be supported.

The IDuplexSession type exposes the following members.

  NameDescription
Public propertyIdGets the ID that uniquely identifies the session. (Inherited from ISession.)
Top

  NameDescription
Public methodBeginCloseOutputSession(AsyncCallback, Object)Begins an asynchronous operation to terminate the outbound session.
Public methodBeginCloseOutputSession(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.
Public methodCloseOutputSession()Terminates the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session.
Public methodCloseOutputSession(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.
Public methodEndCloseOutputSessionCompletes 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.
Top

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.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft