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
sourceId
stringThe identifier for the source of the subscription (e.g., a GUID or unique string).
onChange
Action<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
.
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
sourceId
stringThe identifier for the source of the subscription (e.g., a GUID or unique string).
onChange
Action<ParamValueChange<T>>The action to perform on each change.
subscribeTimeout
TimeSpanSubscribe 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
.
Exceptions
- ArgumentNullException
- InvalidOperationException
Could not add SLNet subscriptions within the specified subscribe timeout.