Method StartValueMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StartValueMonitor(string, string, Action<CellValueChange<T>>, TimeSpan, bool)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, string primaryKey, Action<CellValueChange<T>> onChange, TimeSpan subscribeTimeout, bool includeCurrentValues)
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.
includeCurrentValuesbooltrueto also receive the current values; otherwisefalse.
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>>, bool)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, string primaryKey, Action<CellValueChange<T>> onChange, bool includeCurrentValues)
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.
includeCurrentValuesbooltrueto also receive the current values; otherwisefalse.
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, bool)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, Action<ColumnValueChange<T>> onChange, TimeSpan subscribeTimeout, bool includeCurrentValues)
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.
includeCurrentValuesbooltrueto also receive the current values; otherwisefalse.
Exceptions
- NotSupportedException
Thrown when subscriptions to DVE elements are not supported, nor to columns in this DataMiner version.
StartValueMonitor(string, Action<ColumnValueChange<T>>, bool)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, Action<ColumnValueChange<T>> onChange, bool includeCurrentValues)
Parameters
sourceIdstringThe identifier of the data source. Cannot be null or empty.
onChangeAction<ColumnValueChange<T>>The callback to invoke when the column values changes.
includeCurrentValuesbooltrueto also receive the current values; otherwisefalse.
Exceptions
- NotSupportedException
Thrown when subscriptions to DVE elements are not supported, nor to columns in this DataMiner version.