feat(application): add IEmailSyncService interface and ForcedSyncIntervalSeconds option to EmailAccountsOptions
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
namespace DigitalData.MessagingService.Application.Common.Interfaces;
|
||||||
|
|
||||||
|
public interface IEmailSyncService
|
||||||
|
{
|
||||||
|
public DateTime ForceTriggerSync();
|
||||||
|
}
|
||||||
@@ -24,5 +24,11 @@ public class EmailAccountsOptions
|
|||||||
/// Defaults to 300 seconds (5 minutes).
|
/// Defaults to 300 seconds (5 minutes).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int SyncIntervalSeconds { get; init; } = 300;
|
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
|
#endif
|
||||||
Reference in New Issue
Block a user