Method StopAlarmLevelMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StopAlarmLevelMonitor(string, TimeSpan, bool)
Stops the specified monitor for a given element.
void StopAlarmLevelMonitor(string sourceId, TimeSpan subscribeTimeout, bool force = false)
Parameters
sourceId
stringThe same identifier used when the subscription was started.
subscribeTimeout
TimeSpanMaximum time allowed to complete the unsubscription.
force
boolIf
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.
StopAlarmLevelMonitor(string, bool)
Stops the specified monitor using the default timeout.
void StopAlarmLevelMonitor(string sourceId, bool force = false)
Parameters
sourceId
stringIdentifier used to register the monitor.
force
boolIf 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.