1 write to CancellationToken
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\IdleProcessor.cs (1)
43CancellationToken = cancellationToken;
29 references to CancellationToken
Microsoft.CodeAnalysis.Features (28)
SolutionCrawler\IdleProcessor.cs (7)
60_processorTask = Task.Factory.SafeStartNewFromAsync(ProcessAsync, CancellationToken, TaskScheduler.Default); 106this.CancellationToken.ThrowIfCancellationRequested(); 115if (!await expeditableDelaySource.Delay(delayTimeSpan, CancellationToken).ConfigureAwait(false)) 130while (!CancellationToken.IsCancellationRequested) 135await WaitAsync(CancellationToken).ConfigureAwait(false); 136CancellationToken.ThrowIfCancellationRequested(); 142CancellationToken.ThrowIfCancellationRequested();
SolutionCrawler\WorkCoordinator.AbstractPriorityProcessor.cs (2)
71using (Logger.LogBlock(FunctionId.WorkCoordinator_WaitForHigherPriorityOperationsAsync, CancellationToken)) 75CancellationToken.ThrowIfCancellationRequested();
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (3)
132if (CancellationToken.IsCancellationRequested) 186if (CancellationToken.IsCancellationRequested) 220if (!processedEverything && !CancellationToken.IsCancellationRequested)
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (2)
125if (CancellationToken.IsCancellationRequested) 171if (!processedEverything && !CancellationToken.IsCancellationRequested)
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (6)
106if (CancellationToken.IsCancellationRequested) 137if (CancellationToken.IsCancellationRequested) 219if (CancellationToken.IsCancellationRequested) 261if (CancellationToken.IsCancellationRequested) 335if (!processedEverything && !CancellationToken.IsCancellationRequested) 480workItem: new WorkItem(), (a, s, c) => a.NewSolutionSnapshotAsync(s, c), CancellationToken).ConfigureAwait(false);
SolutionCrawler\WorkCoordinator.SemanticChangeProcessor.cs (8)
91=> DequeueWorker(_workGate, _pendingWork, CancellationToken); 105!changedMember.TryResolve(await document.GetSyntaxRootAsync(CancellationToken).ConfigureAwait(false), out SyntaxNode? declarationNode)) 110var symbol = model.GetDeclaredSymbol(declarationNode, CancellationToken); 246using (_workGate.DisposableWait(CancellationToken)) 373using (_workGate.DisposableWait(CancellationToken)) 393CancellationToken.ThrowIfCancellationRequested(); 397var isLowPriority = priorityService != null && await priorityService.IsLowPriorityAsync(GetRequiredDocument(project, documentId, document), CancellationToken).ConfigureAwait(false); 436=> DequeueWorker(_workGate, _pendingWork, CancellationToken);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (1)
64using (RoslynLogger.LogBlock(FunctionId.Diagnostics_GeneratePerformaceReport, CancellationToken))