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
sourceIdstringThe same identifier used when the subscription was started.
subscribeTimeoutTimeSpanMaximum time allowed to complete the unsubscription.
forceboolIf
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
sourceIdis 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
sourceIdstringIdentifier used to register the monitor.
forceboolIf set to
true, performs forced cleanup.
Remarks
For external usage only. Protocols should use SLProtocol-based stop methods for proper cleanup.
Exceptions
- ArgumentNullException
sourceIdis null.- InvalidOperationException
Unsubscription could not be completed within the default timeout.