Esempio n. 1
0
        public async Task <Config> LoadRepoConfig()
        {
            var confData = await File.ReadAllTextAsync(Path.Combine(extractedDir, ArchiveRecorder.RepoConfigPath));

            return(new Config {
                repos = Repos.Parse(confData),
            });
        }
Esempio n. 2
0
 public async Task <Config> LoadRepoConfig() => new Config
 {
     repos = Repos.Parse(
         await RecordRepoConfig(() => File.ReadAllTextAsync(Path.Combine(ConfDir, "repos.toml"), Globals.HeliumEncoding))
         ),
 };