public void WipeAllExceptDump(string bundleId, string dumpId) { var dumpdir = pathHelper.GetDumpDirectory(bundleId, dumpId); var dumpfile = dumpRepo.GetDumpFilePath(bundleId, dumpId); foreach (var file in Directory.EnumerateFiles(dumpdir)) { if (file != dumpfile && file != pathHelper.GetDumpMetadataPath(bundleId, dumpId)) { File.Delete(file); } } }
public void RerunAnalysis(string bundleId, string dumpId) { var dumpFilePath = dumpRepo.GetDumpFilePath(bundleId, dumpId); if (!File.Exists(dumpFilePath)) { throw new DumpNotFoundException($"bundleid: {bundleId}, dumpid: {dumpId}, path: {dumpFilePath}"); } WipeAllExceptDump(bundleId, dumpId); var dumpInfo = dumpRepo.Get(bundleId, dumpId); analysisService.ScheduleDumpAnalysis(dumpInfo); }
public void RerunAnalysis(DumpIdentifier id) { var dumpFilePath = dumpRepo.GetDumpFilePath(id); if (!File.Exists(dumpFilePath)) { throw new DumpNotFoundException($"id: {id}, path: {dumpFilePath}"); } WipeAllExceptDump(id); dumpRepo.ResetDumpTyp(id); var dumpInfo = dumpRepo.Get(id); analysisService.ScheduleDumpAnalysis(dumpInfo); }