Пример #1
0
 public void Shutdown()
 {
     if (!Aria2Config.IsAria2ServerExist)
     {
         Aria2Helper.Shutdown(Aria2);
     }
 }
Пример #2
0
        public void Start()
        {
            if (Aria2 == null)
            {
                Aria2 = Aria2Config.IsAria2ServerExist
                    ? Aria2Helper.Connect(Aria2Config.Aria2Host, Aria2Config.ListenPort)
                    : Aria2Helper.StartUp(Aria2Config.Aria2Path, Aria2Config.ToArgs(), Aria2Config.Aria2Host, Aria2Config.ListenPort);

                InitDownloadTasks();
                AutoRefresh();
            }
        }