ZeroLauncher/App.xaml.cs

35 lines
833 B
C#
Raw Normal View History

2024-03-07 22:50:28 +08:00
using System.Windows;
2024-03-07 21:04:59 +08:00
using Zerolauncher.Manager;
namespace Zerolauncher
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
2024-03-11 10:57:12 +08:00
Task.Run(async () =>
2024-03-09 18:29:16 +08:00
{
2024-03-11 10:57:12 +08:00
await CloundMananger.TakeQMessage();
UpDateManager.DoCheckUpdate();
if (DownloadTask.state)
{
2024-03-09 18:29:16 +08:00
2024-03-11 10:57:12 +08:00
}
});
DataStream.Load();
_ = WebApiManager.StartListener();
AccountManager.initLoadData(); }
2024-03-09 18:29:16 +08:00
protected override void OnExit(ExitEventArgs e)
{
base.OnExit(e);
WebApiManager.StopListener();
2024-03-07 21:04:59 +08:00
}
}
}