MireaBackend/Endpoint/Common/Services/ScheduleSyncManager.cs

15 lines
403 B
C#
Raw Normal View History

2024-10-27 05:42:50 +03:00
using System;
namespace Mirea.Api.Endpoint.Common.Services;
public static class ScheduleSyncManager
{
public static event Action? OnUpdateIntervalRequested;
public static event Action? OnForceSyncRequested;
public static void RequestIntervalUpdate() =>
OnUpdateIntervalRequested?.Invoke();
public static void RequestForceSync() =>
OnForceSyncRequested?.Invoke();
}