Utopia-Canteen-System/Services/ISyncService.cs

11 lines
344 B
C#

namespace UtopiaCanteenSystem.Services;
/// <summary>
/// Syncs unsynced ScanRecords to the configured UIND API endpoint.
/// </summary>
public interface ISyncService
{
/// <summary>Runs one sync: POST unsynced records to API and mark as synced on success.</summary>
Task SyncNowAsync(CancellationToken cancellationToken = default);
}