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
sourceIdstringThe unique identifier used when starting the subscription.
subscribeTimeoutTimeSpanMaximum time to wait for the cleanup to complete.
forceboolIf 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
sourceIdis 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
sourceIdstringThe unique identifier used when starting the subscription.
forceboolIf
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
sourceIdis null.- InvalidOperationException
Cleanup could not be completed within the default timeout.