This commit is contained in:
2022-09-21 17:44:52 +00:00
parent 30ef4efc49
commit 4292834c06
7 changed files with 13 additions and 10 deletions

View File

@@ -34,8 +34,10 @@ namespace AyaNova.Biz
var tsSinceLastCheck = DateTime.UtcNow - _lastCheck;
//which track are we on?
/*
NONE = 0,//fast track
ActiveTrial = 1,//slow track
FAST TRACK=30 minutes
SLOW TRACK= 24 hours
NONE = 0,//fast track (no license)
ActiveTrial = 1,//fast track (because they may be testing a migration and running out of time and don't want to cancel it)
ExpiredTrial = 2,//fast track
ActivePurchased = 3,//slow track
ExpiredPurchased = 4,//fast track
@@ -45,6 +47,7 @@ namespace AyaNova.Biz
switch (AyaNova.Core.License.ActiveKey.Status)
{
case AyaNova.Core.License.AyaNovaLicenseKey.LicenseStatus.NONE:
case AyaNova.Core.License.AyaNovaLicenseKey.LicenseStatus.ActiveTrial:
case AyaNova.Core.License.AyaNovaLicenseKey.LicenseStatus.ExpiredTrial:
case AyaNova.Core.License.AyaNovaLicenseKey.LicenseStatus.ExpiredPurchased:
tsCheckFrequency = FAST_TRACK;
@@ -69,7 +72,7 @@ namespace AyaNova.Biz
var ret = await AyaNova.Core.License.FetchKeyAsync(ServerState, ct, log, true);
//When this was enabled never saw a failed fetch, trying again without it
//#if (DEBUG)
// log.LogInformation("TEMP TEST LOG: CoreJobLicense - result is: " + ret);
// log.LogInformation("TEMP TEST LOG: CoreJobLicense - result is: " + ret);
//#endif
//most often the result will be "notfound" but in future might be other results
if (ret == "ok")