예제 #1
0
 private void Tick(object state)
 {
     lock (Timer)
     {
         LatestDetails.UpdateInfo();
         if (LatestDetails.CanUpdate)
         {
             DownloadLatestVersion();
             if (LatestDetails.UpdateDownloaded)
             {
                 FireOnUpdateAvailable();
             }
         }
     }
 }
예제 #2
0
 private void Tick(object state)
 {
     Log.Info("Waiting to tick");
     lock (Timer)
     {
         Log.Info("Ticking");
         LatestDetails.UpdateInfo();
         if (LatestDetails.CanUpdate)
         {
             DownloadLatestVersion();
             if (LatestDetails.UpdateDownloaded)
             {
                 FireOnUpdateAvailable();
             }
         }
     }
 }