Table of Contents

Method StartElementNameMonitor

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

StartElementNameMonitor(string, Action<ElementNameChange>, TimeSpan)

Starts monitoring element name changes. Every change triggers the specified onChange action.

void StartElementNameMonitor(string sourceId, Action<ElementNameChange> onChange, TimeSpan subscribeTimeout)

Parameters

sourceId string

Unique identifier for the subscription source.

onChange Action<ElementNameChange>

Callback invoked when an element’s name changes.

subscribeTimeout TimeSpan

Maximum time to wait for subscription setup.

Remarks

Intended for non-Protocol use. In Protocols, use the SLProtocol-based overloads in the appropriate namespace.

Exceptions

ArgumentNullException

sourceId or onChange is null.

InvalidOperationException

Subscription could not be established within the specified timeout.

StartElementNameMonitor(string, Action<ElementNameChange>)

Starts monitoring element name changes using the default timeout.

void StartElementNameMonitor(string sourceId, Action<ElementNameChange> onChange)

Parameters

sourceId string

Unique identifier for the subscription source.

onChange Action<ElementNameChange>

Callback invoked when an element’s name changes.

Remarks

For use outside of Protocols. Use SLProtocol-based alternatives inside Protocols.

Exceptions

ArgumentNullException

sourceId or onChange is null.

InvalidOperationException

Subscription could not be established within the default timeout.