示例#1
0
 public static Task RefreshAsync(Action callback)
 {
     return(Task.Run(() =>
     {
         RemoteVersionInfoGetter getter = new RemoteVersionInfoGetter();
         try
         {
             Result = getter.GetSync();
             callback?.Invoke();
         }
         catch (Exception e)
         {
             SLogger.Warn(nameof(Updater), "cannot refresh update informations", e);
         }
     }));
 }