Method StartValueMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StartValueMonitor(string, Action<ParamValueChange<T>>)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, Action<ParamValueChange<T>> onChange)
Parameters
sourceIdstringThe identifier for the source of the subscription (e.g., a GUID or unique string).
onChangeAction<ParamValueChange<T>>The action to perform on each change.
Remarks
These extension methods are meant for non-Protocol usage.
If used in Protocols, consider the alternatives in Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors.
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.
Exceptions
- ArgumentNullException
- InvalidOperationException
Could not add SLNet subscriptions within 10 minutes.
StartValueMonitor(string, Action<ParamValueChange<T>>, TimeSpan)
Starts monitoring value changes. Every change will perform the onChange action.
void StartValueMonitor(string sourceId, Action<ParamValueChange<T>> onChange, TimeSpan subscribeTimeout)
Parameters
sourceIdstringThe identifier for the source of the subscription (e.g., a GUID or unique string).
onChangeAction<ParamValueChange<T>>The action to perform on each change.
subscribeTimeoutTimeSpanSubscribe timeout.
Remarks
These extension methods are meant for non-Protocol usage.
If used in Protocols, consider the alternatives in Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors.
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.
Exceptions
- ArgumentNullException
- InvalidOperationException
Could not add SLNet subscriptions within the specified subscribe timeout.