ISession Interface

Interface ISession

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public interface ISession : IConnectionStateProvider

The ISession type exposes the following members.

Properties

 

Name

Description

ISession Interface 1:

AddressSpecifier

Gets the communication endpoint address string representation.

ISession Interface 2:

Connection

Gets the Connection object.

ISession Interface 3:

ISession Interface 4:

ConnectionState

Gets the current Connection state of the IConnectionStateProvider (Inherited from IConnectionStateProvider.)

ISession Interface 5:

EstablishedAt

Gets the UTC time when the session was established.

ISession Interface 6:

Id

Gets the Session Id

ISession Interface 7:

IsConnected

Gets a value indicating whether the session is connected.

ISession Interface 8:

Provider

Gets the Session Provider

Methods

 

Name

Description

ISession Interface 9:

Close

Closes this ISession

ISession Interface 10:

Connect

Connects the session and returns the established IConnection object.

ISession Interface 11:

ConnectAsync

Connects the session and returns the established IConnection object.

ISession Interface 12:

Disconnect

Disconnects the ISession

ISession Interface 13:

EnsureConnection

Ensures, that the ISession is connected and returns the IConnection object.

Events

 

Name

Description

ISession Interface 14:

ISession Interface 15:

ConnectionStateChanged

Occurs when connection status of the IConnectionStateProvider has been changed. (Inherited from IConnectionStateProvider.)

Reference

TwinCAT Namespace