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); } })); }
internal UpdateNoticeWindow(RemoteVersionInfoGetter.Result result) { InitializeComponent(); DataContext = new VMUpdateWindow(result); }