public void DeleteCountsRepo() { Debug.WriteLine($"Starting to delete the old repo: {RepoFilename} at {DateTime.Now.ToString(DiagTimeFormat)}."); if (_countsRepo != null) { _countsRepo.Dispose(); _countsRepo = null; } ValueRecords <RectangleInt, MapSectionWorkResult> .DeleteRepo(RepoFilename); Debug.WriteLine($"Completed deleting the old repo: {RepoFilename} at {DateTime.Now.ToString(DiagTimeFormat)}."); }
//public IEnumerable<Tuple<MapSectionResult, bool>> ReplayResults() //{ // SubJob subJob = GetNextSubJob(); // while (subJob != null) // { // MapSection ms = subJob.MapSectionWorkRequest.MapSection; // RectangleInt riKey = ms.GetRectangleInt(); // MapSectionWorkResult workResult = GetEmptyResult(riKey); // if (RetrieveWorkResultFromRepo(riKey, workResult)) // { // MapSectionResult msr = new MapSectionResult(JobId, ms, workResult.Counts); // Tuple<MapSectionResult, bool> item = new Tuple<MapSectionResult, bool>(msr, IsLastSubJob); // DecrementSubJobsRemainingToBeSent(); // subJob = GetNextSubJob(); // yield return item; // } // else // { // yield return null; // } // } //} private void CloseCountsRepo(bool deleteRepo) { Debug.WriteLine($"Starting to close the repo: {RepoFilename} at {DateTime.Now.ToString(DiagTimeFormat)}."); if (_countsRepo != null) { ValueRecords <KPoint, SubJobResult> repo = _countsRepo; _countsRepo = null; repo.Dispose(); } if (deleteRepo) { ValueRecords <KPoint, SubJobResult> .DeleteRepo(RepoFilename); Debug.WriteLine($"Completed deleting the repo: {RepoFilename} at {DateTime.Now.ToString(DiagTimeFormat)}."); } else { Debug.WriteLine($"Completed closing the repo: {RepoFilename} at {DateTime.Now.ToString(DiagTimeFormat)}."); } }