Table of Contents

Method StartValueMonitor

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

StartValueMonitor(string, string, Action<CellValueChange<T>>, TimeSpan)

Starts monitoring value changes. Every change will perform the onChange action.

void StartValueMonitor(string sourceId, string primaryKey, Action<CellValueChange<T>> onChange, TimeSpan subscribeTimeout)

Parameters

sourceId string

The identifier of the data source containing the cell to monitor. Cannot be null or empty.

primaryKey string

The primary key that uniquely identifies the cell within the data source. Cannot be null or empty.

onChange Action<CellValueChange<T>>

The callback to invoke when the cell value changes.

subscribeTimeout TimeSpan

Subscribe timeout.

Remarks

From DataMiner version 10.5, for optimal performance, subscriptions intended for DVE elements should be registered on their parent element instead. DMS Monitor will use Message Broker subscriptions instead of SLNet to receive parameter updates.

StartValueMonitor(string, string, Action<CellValueChange<T>>)

Starts monitoring value changes. Every change will perform the onChange action.

void StartValueMonitor(string sourceId, string primaryKey, Action<CellValueChange<T>> onChange)

Parameters

sourceId string

The identifier of the data source containing the cell to monitor. Cannot be null or empty.

primaryKey string

The primary key that uniquely identifies the cell within the data source. Cannot be null or empty.

onChange Action<CellValueChange<T>>

The callback to invoke when the cell value changes.

Remarks

From DataMiner version 10.5, for optimal performance, subscriptions intended for DVE elements should be registered on their parent element instead. DMS Monitor will use Message Broker subscriptions instead of SLNet to receive parameter updates.

StartValueMonitor(string, Action<ColumnValueChange<T>>, TimeSpan)

Starts monitoring value changes. Every change will perform the onChange action.

void StartValueMonitor(string sourceId, Action<ColumnValueChange<T>> onChange, TimeSpan subscribeTimeout)

Parameters

sourceId string

The identifier of the data source. Cannot be null or empty.

onChange Action<ColumnValueChange<T>>

The callback to invoke when the column values changes.

subscribeTimeout TimeSpan

Subscribe timeout.

Exceptions

NotSupportedException

Thrown when subscriptions to DVE elements are not supported, nor to columns in this DataMiner version.

StartValueMonitor(string, Action<ColumnValueChange<T>>)

Starts monitoring value changes. Every change will perform the onChange action.

void StartValueMonitor(string sourceId, Action<ColumnValueChange<T>> onChange)

Parameters

sourceId string

The identifier of the data source. Cannot be null or empty.

onChange Action<ColumnValueChange<T>>

The callback to invoke when the column values changes.

Exceptions

NotSupportedException

Thrown when subscriptions to DVE elements are not supported, nor to columns in this DataMiner version.