Table of Contents

Method StartValueMonitor

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

StartValueMonitor(string, Action<ParamValueChange<T>>, bool)

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

void StartValueMonitor(string sourceId, Action<ParamValueChange<T>> onChange, bool includeCurrentValues)

Parameters

sourceId string

The 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.

includeCurrentValues bool

true to also receive the current values; otherwise false.

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

sourceId is null -or- onChange is null

InvalidOperationException

Could not add SLNet subscriptions within 10 minutes.

StartValueMonitor(string, Action<ParamValueChange<T>>, TimeSpan, bool)

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

void StartValueMonitor(string sourceId, Action<ParamValueChange<T>> onChange, TimeSpan subscribeTimeout, bool includeCurrentValues)

Parameters

sourceId string

The 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 TimeSpan

Subscribe timeout.

includeCurrentValues bool

true to also receive the current values; otherwise false.

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

sourceId is null -or- onChange is null

InvalidOperationException

Could not add SLNet subscriptions within the specified subscribe timeout.

Advanced search syntax