public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version) { Containers = containers; RootCfg = rootCfg; Cfg = cfg; Version = version; }
public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version, YtStore store) { Containers = containers; RootCfg = rootCfg; Cfg = cfg; Version = version; Store = store.Store; }
public static async Task <Cfg> LoadCfg(ILogger log = null) { var rootCfg = new RootCfg(); rootCfg.AzureStorageCs = GetEnv("YtNetworks_AzureStorageCs"); if (rootCfg.AzureStorageCs.NullOrEmpty()) { throw new InvalidOperationException("AzureStorageCs variable not provided"); } var storageAccount = CloudStorageAccount.Parse(rootCfg.AzureStorageCs); var cloudBlobClient = storageAccount.CreateCloudBlobClient(); var cfg = (await cloudBlobClient.GetText("cfg", $"{rootCfg.Environment}.json")).ToObject <AppCfg>(); return(new Cfg { App = cfg, Root = rootCfg }); }
public VersionInfoProvider(ILogger log, RootCfg rootCfg) =>