namespace ZB.MOM.WW.MxGateway.Server.Dashboard; /// /// Provides snapshots of the dashboard state for UI updates. /// public interface IDashboardSnapshotService { /// /// Gets the current dashboard snapshot. /// /// The current dashboard snapshot. DashboardSnapshot GetSnapshot(); /// /// Watches for changes to the dashboard state as an async enumerable. /// /// Token to cancel the asynchronous operation. /// An asynchronous stream of dashboard snapshots. IAsyncEnumerable WatchSnapshotsAsync(CancellationToken cancellationToken); }