case 4218
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user