protected override async void OnStartup(StartupEventArgs e) { IsDebug = e.Args.Contains("debug"); IsConsole = e.Args.Contains("console"); NoUpdate = e.Args.Contains("noupdate"); if (IsConsole && !ConsoleManager.HasConsole) { ConsoleManager.Show(); } if (!NoUpdate) { var autoUpdater = new AutoUpdater("BoltunovOleg", "ChatRoulette", Assembly.GetExecutingAssembly()); var t = await autoUpdater.CheckUpdate(); if (t) { var release = await autoUpdater.GetLatestRelease(); autoUpdater.ShowReleaseInfo(release); App.Current.Shutdown(0); } } base.OnStartup(e); }