IDuplexSession Interface

Definition

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

C#
public interface IDuplexSession : System.ServiceModel.Channels.IInputSession, System.ServiceModel.Channels.IOutputSession
Implements

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 null when that session is shutdown.

Properties

Id

Gets the ID that uniquely identifies the session.

(Inherited from ISession)

Methods

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(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.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0