public AzureBatchComputeScheduler(IApplicationEnvironment applicationEnvironment) { var configuration = new ConfigurationBuilder(applicationEnvironment.ApplicationBasePath) .AddJsonFile("config.json") .AddEnvironmentVariables() .Build(); _credentials = new BatchSharedKeyCredentials( configuration.GetSection("AppSettings:BatchAccountUrl").Value, configuration.GetSection("AppSettings:BatchAccountName").Value, configuration.GetSection("AppSettings:BatchKey").Value); }