예제 #1
0
        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;
        }
예제 #2
0
 public async Task Execute(IJobExecutionContext context)
 {
     StaticCode.OnUpdateAvailablityChanged(false);
     await Task.CompletedTask;
 }