namespace ZB.MOM.WW.MxGateway.Server.Dashboard;

/// <summary>
/// Provides snapshots of the dashboard state for UI updates.
/// </summary>
public interface IDashboardSnapshotService
{
    /// <summary>
    /// Gets the current dashboard snapshot.
    /// </summary>
    DashboardSnapshot GetSnapshot();

    /// <summary>
    /// Watches for changes to the dashboard state as an async enumerable.
    /// </summary>
    /// <param name="cancellationToken">Token to cancel the asynchronous operation.</param>
    IAsyncEnumerable<DashboardSnapshot> WatchSnapshotsAsync(CancellationToken cancellationToken);
}
