示例#1
0
        public async static Task <SloaderConfig> GetAsync(string yamlLocation, Dictionary <string, string> secrets)
        {
            var client       = new HttpClient();
            var configString = await client.GetStringAsync(yamlLocation);

            var config = SloaderConfigLoader.Parse(configString, secrets);

            return(config);
        }
示例#2
0
 public async static Task <SloaderConfig> Load(string yamlLocation, Dictionary <string, string> secrets)
 {
     return(await SloaderConfigLoader.GetAsync(yamlLocation, secrets));
 }