public void runBatch(databaseContext context) { foreach (FileInfo file in new DirectoryInfo(this.batchURL).GetFiles("*.json")) { context.AddEntry(JsonConvert.DeserializeObject <RunMod>(File.ReadAllText(file.ToString()))); } }
public void addBatch(databaseContext context) { foreach (string fileurl in Directory.GetFiles(batchURL)) { SerializeFile(fileurl); } }