private static void ReadFilesCore(Index index, string rootPath)
        {
            using (Measure.Time("Read index"))
            {
                using (Measure.Time("Read project info"))
                {
                    ReadProjectInfo(
                        rootPath,
                        index.assemblies,
                        index.projects,
                        index.projectToAssemblyIndexMap);
                }

                using (Measure.Time("Read declared symbols"))
                {
                    ReadDeclaredSymbols(
                        rootPath,
                        index.symbols,
                        index.assemblies,
                        index.projects,
                        ref index.huffman,
                        ref index.progress);
                    index.PopulateSymbolsById();
                }

                ReadGuids(rootPath, index.guids);
                ReadMSBuildProperties(rootPath, index.msbuildProperties);
                ReadMSBuildItems(rootPath, index.msbuildItems);
                ReadMSBuildTargets(rootPath, index.msbuildTargets);
                ReadMSBuildTasks(rootPath, index.msbuildTasks);
            }
        }
Пример #2
0
        private static void ReadFilesCore(Index index, string rootPath)
        {
            IFileSystem fs;

            if (string.IsNullOrEmpty(Helpers.IndexProxyUrl))
            {
                fs = new StaticFileSystem(rootPath);
            }
            else
            {
                fs = new AzureBlobFileSystem(Helpers.IndexProxyUrl);
            }
            using (Measure.Time("Read index"))
            {
                using (Measure.Time("Read project info"))
                {
                    ReadProjectInfo(
                        fs,
                        index.assemblies,
                        index.projects,
                        index.projectToAssemblyIndexMap);
                }

                using (Measure.Time("Read declared symbols"))
                {
                    ReadDeclaredSymbols(
                        fs,
                        index.symbols,
                        index.assemblies,
                        index.projects,
                        ref index.huffman,
                        ref index.progress);
                    index.PopulateSymbolsById();
                }

                ReadGuids(fs, index.guids);
                ReadMSBuildProperties(fs, index.msbuildProperties);
                ReadMSBuildItems(fs, index.msbuildItems);
                ReadMSBuildTargets(fs, index.msbuildTargets);
                ReadMSBuildTasks(fs, index.msbuildTasks);
            }
        }