feat(application): add IEmailSyncService interface and ForcedSyncIntervalSeconds option to EmailAccountsOptions

This commit is contained in:
2026-08-17 16:05:02 +02:00
parent 08547a8768
commit 408ad14c9f
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
namespace DigitalData.MessagingService.Application.Common.Interfaces;
public interface IEmailSyncService
{
public DateTime ForceTriggerSync();
}

View File

@@ -24,5 +24,11 @@ public class EmailAccountsOptions
/// Defaults to 300 seconds (5 minutes).
/// </summary>
public int SyncIntervalSeconds { get; init; } = 300;
/// <summary>
/// The minimum interval, in seconds, between forced IMAP sync operations regardless of idle state.
/// Defaults to 30 seconds (0.5 minute).
/// </summary>
public int ForcedSyncIntervalSeconds { get; init; } = 30;
}
#endif