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); }
public async static Task <SloaderConfig> Load(string yamlLocation, Dictionary <string, string> secrets) { return(await SloaderConfigLoader.GetAsync(yamlLocation, secrets)); }