case 4491

This commit is contained in:
2023-04-26 23:19:22 +00:00
parent 07659f1fe3
commit f25a26c00e
3 changed files with 20 additions and 16 deletions

View File

@@ -21,13 +21,13 @@ namespace AyaNova.Biz
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("CoreJobVersionCheck");
private static DateTime _lastCheck = DateTime.MinValue;
#if (DEBUG)
// #if (DEBUG)
// private static TimeSpan CHECK_INTERVAL = new TimeSpan(0, 0, 30);//30 seconds
// #else
private static TimeSpan CHECK_INTERVAL = new TimeSpan(0, 0, 30);//30 seconds
#else
private static TimeSpan CHECK_INTERVAL = new TimeSpan(24, 0, 0);//every day
#endif
//#endif
////////////////////////////////////////////////////////////////////////////////////////////////
// DoWork
@@ -36,13 +36,7 @@ namespace AyaNova.Biz
{
if (DateTime.UtcNow - _lastCheck < CHECK_INTERVAL)
return;
log.LogDebug("Check starting");
// ServerGlobalOpsSettingsCache.LATEST_VERSION = "8.0.44";
// ServerGlobalOpsSettingsCache.CHANGE_LOG_URL = "https://ayanova.com/docs/changelog/";
log.LogDebug("Check starting");
try
{
@@ -50,7 +44,6 @@ namespace AyaNova.Biz
var res = await client.GetAsync("https://ayanova.com/download/latest-version.json");
string responseText = string.Empty;
if (res.IsSuccessStatusCode)
{
responseText = await res.Content.ReadAsStringAsync();