Table of Contents

Method StopStateMonitor

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

StopStateMonitor(string, TimeSpan, bool)

Stops the specified monitor for a given element.

void StopStateMonitor(string sourceId, TimeSpan subscribeTimeout, bool force = false)

Parameters

sourceId string

The same identifier used when the subscription was started.

subscribeTimeout TimeSpan

Maximum time allowed to complete the unsubscription.

force bool

If true, forces cleanup regardless of current subscription state.

Remarks

These stop methods are intended for non-Protocol usage. If you are in a Protocol context, use the overloads with SLProtocol for guaranteed subscription cleanup.

Exceptions

ArgumentNullException

sourceId is null.

InvalidOperationException

The cleanup could not be completed within the specified timeout.

StopStateMonitor(string, bool)

Stops the specified monitor using the default timeout.

void StopStateMonitor(string sourceId, bool force = false)

Parameters

sourceId string

Identifier used to register the monitor.

force bool

If set to true, performs forced cleanup.

Remarks

For external usage only. Protocols should use SLProtocol-based stop methods for proper cleanup.

Exceptions

ArgumentNullException

sourceId is null.

InvalidOperationException

Unsubscription could not be completed within the default timeout.