Table of Contents

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

sourceId string

A unique string to identify the source of the subscription.

onChange Action<ViewStateChange>

Callback triggered when a view’s state changes.

subscribeTimeout TimeSpan

Maximum 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

sourceId or onChange is 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

sourceId string

A unique string to identify the source of the subscription.

onChange Action<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

sourceId or onChange is null.

InvalidOperationException

Subscription failed to establish within the timeout.