private static void AddSolution(SolutionSizeTracker.IncrementalAnalyzer analyzer, Solution solution) { foreach (var document in solution.Projects.SelectMany(p => p.Documents)) { analyzer.AnalyzeSyntaxAsync(document, CancellationToken.None).Wait(); } }
private static async Task AddSolutionAsync(SolutionSizeTracker.IncrementalAnalyzer analyzer, Solution solution) { foreach (var document in solution.Projects.SelectMany(p => p.Documents)) { await analyzer.AnalyzeSyntaxAsync(document, InvocationReasons.Empty, CancellationToken.None); } }
public PersistentStorageService( IOptionService optionService, SolutionSizeTracker solutionSizeTracker) { _optionService = optionService; _solutionSizeTracker = solutionSizeTracker; _lookupAccessLock = new object(); _lookup = new Dictionary<string, AbstractPersistentStorage>(); _lastSolutionPath = null; _primarySolutionId = null; _primarySolutionStorage = null; }
public PersistenceServiceFactory(SolutionSizeTracker solutionSizeTracker) { _solutionSizeTracker = solutionSizeTracker; }