다음을 통해 공유


IDuplexSession Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Interface IDuplexSession _
    Inherits IInputSession, IOutputSession, ISession
public interface IDuplexSession : IInputSession, 
    IOutputSession, ISession

The IDuplexSession type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Id Gets the ID that uniquely identifies the session. (Inherited from ISession.)

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone BeginCloseOutputSession(AsyncCallback, Object) Begins an asynchronous operation to terminate the outbound session.
Public methodSupported by Silverlight for Windows Phone BeginCloseOutputSession(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 Silverlight for Windows Phone CloseOutputSession() 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 Silverlight for Windows Phone 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.
Public methodSupported by Silverlight for Windows Phone 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.

Top

Remarks

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 nulla null reference (Nothing in Visual Basic) when that session is shutdown.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.