ISession Interface

Interface ISession


Namespace: TwinCAT
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

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

ISession Interface 9:

Settings

Gets the session settings.

Methods

 

Name

Description

ISession Interface 10:

Close

Closes this ISession

ISession Interface 11:

Connect

Connects the session and returns the established IConnection object.

ISession Interface 12:

ConnectAsync

Connects the session and returns the established IConnection object.

ISession Interface 13:

Disconnect

Disconnects the ISession

ISession Interface 14:

EnsureConnection

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

Events

 

Name

Description

ISession Interface 15:

ISession Interface 16:

ConnectionStateChanged

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

Reference

TwinCAT Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026