Esempio n. 1
0
        private void LoadConfig()
        {
            var cfgfile = Path.Combine(Environment.CurrentDirectory, "aria2c.json");

            if (File.Exists(cfgfile))
            {
                using (var reader = new StreamReader(cfgfile))
                {
                    this.Config = JsonConvert.DeserializeObject <Aria2Config>(reader.ReadToEnd());
                }
            }
            else
            {
                this.Config = new Aria2Config();
            }
        }
Esempio n. 2
0
 public Aria2Helper()
 {
     this.Config = new Aria2Config();
 }