static void AddTasks(string jobId, int numberOfTasks) { var batchAccountUrl = ConfigurationManager.AppSettings["BatchAccountUrl"]; var batchAccountName = ConfigurationManager.AppSettings["BatchAccountName"]; var batchAccountKey = ConfigurationManager.AppSettings["BatchAccountKey"]; var jobHelper = new JobHelper(batchAccountUrl, batchAccountName, batchAccountKey); jobHelper.AddTasks(jobId, numberOfTasks); }