public async Task Execute(IJobExecutionContext context) { try { var update = GetUpdate(); if ((update != null) && (update.LatestVersion > Assembly.GetExecutingAssembly().GetName().Version)) { StaticCode.UpdateUrl = update.DownloadUrl; StaticCode.OnUpdateAvailablityChanged(true); } } catch (Exception ex) { StaticCode.Logger?.Here().Error(ex.Message); } await Task.CompletedTask; }
public async Task Execute(IJobExecutionContext context) { StaticCode.OnUpdateAvailablityChanged(false); await Task.CompletedTask; }