Skip to content

PluginEventWatch

Static class in Oadm.Sdk.Client · Oadm.Sdk.Client.dll

The live events of a plugin page, watched again after the connection drops.

public static class PluginEventWatch
static Task RunAsync(this ICorePluginClientContext ctx, Action<PluginEvent> handle, TimeSpan? retryDelay, CancellationToken ct)

Hands every event of ICorePluginClientContext.WatchEventsAsync to handle (on the calling thread’s context, usually the UI thread) until ct is cancelled; a broken stream is watched again after retryDelay. Never throws (cancellation ends it).

static readonly TimeSpan DefaultRetryDelay

Wait before watching again after the stream broke.