Table of Contents

Method StopElementNameMonitor

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

StopElementNameMonitor(string, TimeSpan, bool)

Stops the specified monitor for the given source.

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

Parameters

sourceId string

The unique identifier used when starting the subscription.

subscribeTimeout TimeSpan

Maximum time to wait for the cleanup to complete.

force bool

If set to true, forces subscription cleanup.

Remarks

These stop methods are for non-Protocol usage only. If used inside a Protocol, proper cleanup should be handled through the SLProtocol-based methods available in Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors.

Exceptions

ArgumentNullException

sourceId is null.

InvalidOperationException

Cleanup did not complete within the given timeout.

StopElementNameMonitor(string, bool)

Stops the specified monitor for the given source using the default timeout.

void StopElementNameMonitor(string sourceId, bool force = false)

Parameters

sourceId string

The unique identifier used when starting the subscription.

force bool

If true, forces the cleanup even if normal removal fails.

Remarks

For non-Protocol usage only. Inside Protocols, use SLProtocol-based variants for cleanup.

Exceptions

ArgumentNullException

sourceId is null.

InvalidOperationException

Cleanup could not be completed within the default timeout.