case 4218

This commit is contained in:
2022-10-25 20:36:20 +00:00
parent 102c145386
commit 645f03a720

View File

@@ -56,6 +56,17 @@ namespace AyaNova.Biz
dtDeleteCutoff = DateTime.UtcNow - INTERNAL_JOBS_LOGS_DELETE_AFTER_THIS_TIMESPAN;
await SweepInternalJobsLogsAsync(ct, dtDeleteCutoff);
//Check license expired - this is the only place during server running outside of boot and new license fetch that
//the license is checked for expiration
//case 4218
if (AyaNova.Core.License.ActiveKey.LicenseExpired)
{
var msg = $"E1020 - License key expired {Util.DateUtil.ServerDateTimeString(AyaNova.Core.License.ActiveKey.LicenseExpiration)}";
AyaNova.Util.ServiceProviderProvider.ServerState.SetSystemLock(msg);
log.LogCritical(msg);
return;
}
//In flight check validate the db license related user data in case of attempted circumvention