IConnectionStateObserver Interface

Interface for a Connection state watcher (observer)

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 5.0.294+Branch.releases-5.0.Sha.90bb9a1b43b6095934fddca3e72bc0ea15da1c14

Syntax

C#

public interface IConnectionStateObserver : IConnectionStateProvider

The IConnectionStateObserver type exposes the following members.

Properties

 

Name

Description

IConnectionStateObserver Interface 1:

IConnectionStateObserver Interface 2:

ConnectionState

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

IConnectionStateObserver Interface 3:

ErrorsSinceLastSucceeded

Gets the number of errors since the last successful access

IConnectionStateObserver Interface 4:

LastAccess

Gets the DateTimeOffset of the last tried access

IConnectionStateObserver Interface 5:

LastSucceededAccess

Gets the DateTimeOffset of the last successful data communication

IConnectionStateObserver Interface 6:

Quality

Gets the quality of the current cached value (the age of the data)

IConnectionStateObserver Interface 7:

TotalCycles

Gets the number of successful reads / writes

IConnectionStateObserver Interface 8:

TotalErrors

Gets the error count of accesses

Events

 

Name

Description

IConnectionStateObserver Interface 9:

IConnectionStateObserver Interface 10:

ConnectionStateChanged

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

Reference

TwinCAT Namespace