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, 
	IOutputSession, ISession

The IDuplexSession type exposes the following members.

  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIdGets the ID that uniquely identifies the session. (Inherited from ISession.)
Top

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBeginCloseOutputSession(AsyncCallback, Object)Begins an asynchronous operation to terminate the outbound session.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBeginCloseOutputSession(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsCloseOutputSession()Terminates the outbound session that indicates that no more messages will be sent from this endpoint on the channel associated with the session.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsCloseOutputSession(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 methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEndCloseOutputSessionCompletes 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 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft