Exemplo n.º 1
0
        protected override async void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Initialize configurations
            InitialConfig.InitConfig();

            // Set up Aria2
            var ariaRunner = new AriaRunner();
            await ariaRunner.Start();
        }
Exemplo n.º 2
0
 private async void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     // Stop Aria2
     var ariaRunner = new AriaRunner();
     await ariaRunner.Stop();
 }