Add debug-specific check interval for enterprise environment

This commit is contained in:
Thorsten Sommer 2025-06-02 19:28:52 +02:00
parent 08ef18156f
commit 041cbc568b
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -5,8 +5,12 @@ namespace AIStudio.Tools.Services;
public sealed class EnterpriseEnvironmentService(ILogger<EnterpriseEnvironmentService> logger, RustService rustService) : BackgroundService public sealed class EnterpriseEnvironmentService(ILogger<EnterpriseEnvironmentService> logger, RustService rustService) : BackgroundService
{ {
public static EnterpriseEnvironment CURRENT_ENVIRONMENT; public static EnterpriseEnvironment CURRENT_ENVIRONMENT;
#if DEBUG
private static readonly TimeSpan CHECK_INTERVAL = TimeSpan.FromMinutes(6);
#else
private static readonly TimeSpan CHECK_INTERVAL = TimeSpan.FromMinutes(16); private static readonly TimeSpan CHECK_INTERVAL = TimeSpan.FromMinutes(16);
#endif
#region Overrides of BackgroundService #region Overrides of BackgroundService