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
sourceIdstringThe identifier of the data source containing the cell to monitor. Cannot be null or empty.
primaryKeystringThe primary key that uniquely identifies the cell within the data source. Cannot be null or empty.
onChangeAction<CellValueChange<T>>The callback to invoke when the cell value changes.
subscribeTimeoutTimeSpanSubscribe 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
sourceIdstringThe identifier of the data source containing the cell to monitor. Cannot be null or empty.
primaryKeystringThe primary key that uniquely identifies the cell within the data source. Cannot be null or empty.
onChangeAction<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
sourceIdstringThe identifier of the data source. Cannot be null or empty.
onChangeAction<ColumnValueChange<T>>The callback to invoke when the column values changes.
subscribeTimeoutTimeSpanSubscribe 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
sourceIdstringThe identifier of the data source. Cannot be null or empty.
onChangeAction<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.