示例#1
0
        private static void FillFileInfos()
        {
#if BIOSEARCHER_PROFILING
            Profiler.BeginSample(nameof(FillFileInfos));
#endif

            List <string> filePaths = DirectoryReader.GetFilePaths();

            IEnumerable <SearchedTypeInfo> changedTypes = TypeHelper.GetSearchedTypeInfos();

            fileInfos = GetChangedFileInfos(filePaths, changedTypes);

#if BIOSEARCHER_PROFILING
            Profiler.EndSample();
#endif
        }
示例#2
0
        private static void UpdateFileInfos()
        {
#if BIOSEARCHER_PROFILING
            Profiler.BeginSample(nameof(UpdateFileInfos));
#endif

            DirectoryReader.GetFilePaths(out List <string> changedFilePaths, out List <string> notChangedFilePaths, fileInfos);

            List <SearchedTypeInfo> changedTypes = GetChangedTypes(notChangedFilePaths);

            Dictionary <string, FileInfo> changedFileInfos = GetChangedFileInfos(changedFilePaths, changedTypes);

            fileInfos = CombineLogs(changedFileInfos, notChangedFilePaths);

#if BIOSEARCHER_PROFILING
            Profiler.EndSample();
#endif
        }