private DiskAnalysis.DiskAnalysis StartPathAnalysis(Pot pot) { log.WriteInfo("Scanning path: {0}", pot.Path); DiskAnalysis.DiskAnalysis diskAnalysis = new() { RootPath = pot.Path, SnapshotWriter = snapshotRepository.CreateWriter(pot.Name), BlackList = blackListRepository.Get(pot.Name) }; diskAnalysis.Starting += HandleDiskReaderStarting; diskAnalysis.ErrorEncountered += HandleDiskReaderErrorEncountered; diskAnalysis.Finished += HandleDiskAnalysisFinished; _ = diskAnalysis.Run(); return(diskAnalysis); }