Method StopViewStateMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StopViewStateMonitor(string, TimeSpan, bool)
Stops the specified monitor for the given source.
void StopViewStateMonitor(string sourceId, TimeSpan subscribeTimeout, bool force = false)
Parameters
sourceId
stringThe unique identifier used when starting the subscription.
subscribeTimeout
TimeSpanMaximum time to wait for the cleanup to complete.
force
boolIf 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.
StopViewStateMonitor(string, bool)
Stops the specified monitor for the given source using the default timeout.
void StopViewStateMonitor(string sourceId, bool force = false)
Parameters
sourceId
stringThe unique identifier used when starting the subscription.
force
boolIf
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.