Method StartViewStateMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StartViewStateMonitor(string, Action<ViewStateChange>, TimeSpan)
Starts monitoring view state changes. Every change triggers the specified onChange action.
void StartViewStateMonitor(string sourceId, Action<ViewStateChange> onChange, TimeSpan subscribeTimeout)
Parameters
sourceIdstringA unique string to identify the source of the subscription.
onChangeAction<ViewStateChange>Callback triggered when a view’s state changes.
subscribeTimeoutTimeSpanMaximum time to wait for the subscription to be established.
Remarks
These extension methods are meant for non-Protocol usage.
If used in Protocols, consider the alternatives in Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors.
Exceptions
- ArgumentNullException
sourceIdoronChangeis null.- InvalidOperationException
Subscription failed to establish within the timeout.
StartViewStateMonitor(string, Action<ViewStateChange>)
Starts monitoring view state changes. Every change triggers the specified onChange action.
void StartViewStateMonitor(string sourceId, Action<ViewStateChange> onChange)
Parameters
sourceIdstringA unique string to identify the source of the subscription.
onChangeAction<ViewStateChange>Callback triggered when a view’s state changes.
Remarks
These extension methods are meant for non-Protocol usage.
If used in Protocols, consider the alternatives in Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors.
Exceptions
- ArgumentNullException
sourceIdoronChangeis null.- InvalidOperationException
Subscription failed to establish within the timeout.