2153 references to ConfigureAwait
aspire (2)
Aspire.Azure.Npgsql (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (8)
Aspire.Hosting (31)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (2)
Aspire.Hosting.Nats (2)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Qdrant (1)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis (1)
Aspire.Hosting.SqlServer (2)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (1)
GenerateDocumentationAndConfigFiles (60)
Metrics (12)
Metrics.Legacy (12)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (9)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (8)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.SignalR.Client.Core (23)
Microsoft.AspNetCore.SignalR.Core (8)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.CodeAnalysis (31)
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
1595var optionalEvent = await CompilationEventQueue.TryDequeueAsync(cancellationToken).ConfigureAwait(false);
1634EventProcessedState eventProcessedState = await TryProcessEventCoreAsync(e, analysisScope, cancellationToken).ConfigureAwait(false);
1723return await TryProcessSymbolDeclaredAsync(symbolEvent, analysisScope, cancellationToken).ConfigureAwait(false);
1761await GetPerSymbolAnalyzerActionsAsync(symbol, analysisScope, cancellationToken).ConfigureAwait(false) :
2037var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
2122var analyzerActions = await GetPerSymbolAnalyzerActionsAsync(symbol, analyzer, analysisScope.OriginalFilterFile?.SourceTree, analysisScope.OriginalFilterSpan, cancellationToken).ConfigureAwait(false);
2154return await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2162var allActions = await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2168var inheritedActions = await getInheritedActionsAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2171AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2186var containerActions = await driver.GetPerSymbolAnalyzerActionsAsync(symbol.ContainingSymbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2218return await driver.AnalyzerManager.GetPerSymbolAnalyzerActionsAsync(symbol, isGeneratedCodeSymbol, filterTree, filterSpan, analyzer, driver.AnalyzerExecutor, cancellationToken).ConfigureAwait(false);
2363var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\AnalyzerManager.cs (9)
65return await GetCompilationAnalysisScopeCoreAsync(sessionScope, analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false);
88return await GetCompilationAnalysisScopeCoreAsync(sessionScope, analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false);
138return await GetSessionAnalysisScopeCoreAsync(analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false);
159return await GetSessionAnalysisScopeCoreAsync(analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false);
171var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
174var compilationScope = await GetCompilationAnalysisScopeAsync(sessionScope, analyzerExecutor, cancellationToken).ConfigureAwait(false);
195var analyzerActions = await GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
236var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
246var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (71)
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
Microsoft.CodeAnalysis.BannedApiAnalyzers (59)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CodeStyle.Fixes (192)
Microsoft.CodeAnalysis.Collections.Package (7)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (26)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.EditorFeatures (41)
Microsoft.CodeAnalysis.Extensions.Package (7)
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (9)
Remote\RazorRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (215)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (7)
522var (oldDocument, oldText) = await GetDocumentContentAsync(oldProject, documentId, cancellationToken).ConfigureAwait(false);
523var (newDocument, newText) = await GetDocumentContentAsync(newProject, documentId, cancellationToken).ConfigureAwait(false);
549var (oldRoot, newRoot) = await GetSyntaxRootsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false);
629var oldModel = await GetDocumentSemanticModelAsync(oldProject, oldDocument, oldTree, cancellationToken).ConfigureAwait(false);
630var newModel = await GetDocumentSemanticModelAsync(newProject, newDocument, newTree, cancellationToken).ConfigureAwait(false);
728var document = await project.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
772return new DocumentSemanticModel(await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false));
EditAndContinue\CommittedSolution.cs (6)
207var sourceGeneratedDocument = await solution.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
248var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
347? await TryGetMatchingSourceTextAsync(_debuggingSession.SessionLog, sourceText, document.FilePath, currentDocument, _debuggingSession.SourceTextProvider, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false)
363var currentDocumentSourceText = await currentDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
370var text = await sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false);
418var sourceText = await documentState.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\DebuggingSession.cs (5)
482var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
524var solutionUpdate = await EditSession.EmitSolutionUpdateAsync(solution, activeStatementSpanProvider, updateId, runningProjects, cancellationToken).ConfigureAwait(false);
740var document = await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
902var newDocumentActiveStatementSpans = await activeStatementSpanProvider(mappedDocument.Id, mappedDocument.FilePath, cancellationToken).ConfigureAwait(false);
927var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, newUnmappedDocument.Project.Solution, oldUnmappedDocument, newUnmappedDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (26)
159var availability = await DebuggingSession.DebuggerService.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false);
186var oldDocument = await oldProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
187var newDocument = await newProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
233var capabilities = await DebuggingSession.DebuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false);
247var debugInfos = await DebuggingSession.DebuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false);
276return oldDocument != newDocument && !await ContentEqualsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false);
294if (oldProject == null || await HasDocumentDifferencesAsync(oldProject, newProject, documentDifferences: null, cancellationToken).ConfigureAwait(false))
330var oldSource = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
331var newSource = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
355if (await ContentEqualsAsync(oldProject.GetRequiredDocument(documentId), document, cancellationToken).ConfigureAwait(false))
411if (!await ContentEqualsAsync(oldProject.GetRequiredAdditionalDocument(documentId), document, cancellationToken).ConfigureAwait(false))
420if (!await ContentEqualsAsync(oldProject.GetRequiredAnalyzerConfigDocument(documentId), document, cancellationToken).ConfigureAwait(false))
441if (!await HasDocumentDifferencesAsync(oldProject, newProject, documentDifferences, cancellationToken).ConfigureAwait(false))
446var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics, cancellationToken).ConfigureAwait(false);
449var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics, cancellationToken).ConfigureAwait(false);
536var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics: null, cancellationToken).ConfigureAwait(false);
539var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics: null, cancellationToken).ConfigureAwait(false);
598: await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false);
683var oldDocument = await oldProject.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
686await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false);
1019var document = await solution.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
1061var projectChanges = await GetProjectChangesAsync(oldActiveStatementsMap, oldCompilation, newCompilation, oldProject, newProject, changedDocumentAnalyses, cancellationToken).ConfigureAwait(false);
1191var oldDocument = await oldProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
1192var newDocument = await newProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
1281async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyAssemblyToAsync(stream, cancellationToken).ConfigureAwait(false),
1288async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyPdbToAsync(stream, cancellationToken).ConfigureAwait(false),
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (3)
66return (await GetLocalService().EmitSolutionUpdateAsync(sessionId, solution, runningProjects, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false)).Dehydrate();
135return await GetLocalService().GetBaseActiveStatementSpansAsync(sessionId, solution, documentIds, cancellationToken).ConfigureAwait(false);
157return await GetLocalService().GetAdjustedActiveStatementSpansAsync(sessionId, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (6)
60return await _sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false);
72return await _debuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false);
84return await _debuggerService.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false);
108return await _debuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false);
132var sessionId = await GetLocalService().StartDebuggingSessionAsync(solution, debuggerService, sourceTextProvider, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false);
165var diagnostics = await GetLocalService().GetDocumentDiagnosticsAsync(document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.InteractiveHost (11)
Microsoft.CodeAnalysis.LanguageServer.Protocol (49)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (59)
Microsoft.CodeAnalysis.PublicApiAnalyzers (12)
Microsoft.CodeAnalysis.Remote.ServiceHub (56)
Host\RemoteWorkspace.SolutionCreator.cs (14)
46AssetPathKind.SolutionCompilationStateChecksums, newSolutionChecksum, cancellationToken).ConfigureAwait(false);
48AssetPathKind.SolutionStateChecksums, newSolutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
56AssetPathKind.SolutionAttributes, newSolutionChecksums.Attributes, cancellationToken).ConfigureAwait(false);
75useAsync: true, deserializedAnalyzerReferences, _workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false);
83AssetPathKind.SolutionFallbackAnalyzerOptions, newSolutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false));
99new(AssetPathKind.SolutionFrozenSourceGeneratedDocumentIdentities, frozenDocumentId), frozenDocumentIdentity, cancellationToken).ConfigureAwait(false);
102new(AssetPathKind.SolutionFrozenSourceGeneratedDocumentText, frozenDocumentId), frozenDocumentTextChecksum, cancellationToken).ConfigureAwait(false);
116AssetPathKind.SolutionSourceGeneratorExecutionVersionMap, newSolutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false);
329assetPath: projectId, newProjectChecksums.Info, cancellationToken).ConfigureAwait(false));
348assetPath: project.Id, newProjectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false)));
355assetPath: project.Id, newProjectChecksums.ParseOptions, cancellationToken).ConfigureAwait(false));
381useAsync: true, deserializedAnalyzerReferences, _workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false);
552assetPath: document.Id, newDocumentChecksums.textChecksum, cancellationToken).ConfigureAwait(false);
571assetPath: document.Id, infoChecksum, cancellationToken).ConfigureAwait(false);
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (5)
30var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
49var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false);
72var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false);
90var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false);
110var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (82)
AbstractAssetProvider.cs (12)
34var solutionCompilationChecksums = await GetAssetAsync<SolutionCompilationStateChecksums>(AssetPathKind.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false);
35var solutionChecksums = await GetAssetAsync<SolutionStateChecksums>(AssetPathKind.SolutionStateChecksums, solutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
37var solutionAttributes = await GetAssetAsync<SolutionInfo.SolutionAttributes>(AssetPathKind.SolutionAttributes, solutionChecksums.Attributes, cancellationToken).ConfigureAwait(false);
38await GetAssetAsync<SourceGeneratorExecutionVersionMap>(AssetPathKind.SolutionSourceGeneratorExecutionVersionMap, solutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false);
58useAsync: true, analyzerReference, solutionServices, cancellationToken).ConfigureAwait(false);
60var fallbackAnalyzerOptions = await GetAssetAsync<ImmutableDictionary<string, StructuredAnalyzerConfigOptions>>(AssetPathKind.SolutionFallbackAnalyzerOptions, solutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false);
82var attributes = await GetAssetAsync<ProjectInfo.ProjectAttributes>(new(AssetPathKind.ProjectAttributes, projectId), projectChecksums.Info, cancellationToken).ConfigureAwait(false);
86await GetAssetAsync<CompilationOptions>(new(AssetPathKind.ProjectCompilationOptions, projectId), projectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false));
111await parseOptionsTask.ConfigureAwait(false),
115await isolatedAnalyzerReferencesTask.ConfigureAwait(false),
166var attributes = await GetAssetAsync<DocumentInfo.DocumentAttributes>(new(AssetPathKind.DocumentAttributes, documentId), attributeChecksum, cancellationToken).ConfigureAwait(false);
167var serializableSourceText = await GetAssetAsync<SerializableSourceText>(new(AssetPathKind.DocumentText, documentId), textChecksum, cancellationToken).ConfigureAwait(false);
BrokeredServiceConnection.cs (30)
90var proxyRental = await _serviceBrokerClient.GetProxyAsync<TService>(_serviceDescriptor, options, cancellationToken).ConfigureAwait(false);
102using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
117using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
118return await invocation(rental.Service, cancellationToken).ConfigureAwait(false);
135using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
152using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
153return await invocation(rental.Service, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
168using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
169using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
184using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
185using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
186return await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false);
201using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
202using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
217using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
218using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
219return await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false);
236using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
237using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
255using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
256using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
257return await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
274using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
275using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
293using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
294using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
295return await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false);
310using var scope1 = await _solutionAssetStorage.StoreAssetsAsync(compilationState1, cancellationToken).ConfigureAwait(false);
311using var scope2 = await _solutionAssetStorage.StoreAssetsAsync(compilationState2, cancellationToken).ConfigureAwait(false);
312using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\Pythia\Api\PythiaRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\Api\UnitTestingRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
Microsoft.CodeAnalysis.Threading.Package (10)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Microsoft.CodeAnalysis.Workspaces (321)
Editing\ImportAdder.cs (9)
20var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
34=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
46=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
63var addImportOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
71=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
77=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
89=> await AddImportsFromSymbolAnnotationAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
95=> await AddImportsFromSymbolAnnotationAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
Remote\RemoteHostClient.cs (14)
66return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
75return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
87return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
97return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false);
118return await connection.TryInvokeAsync(compilationState, invocation, cancellationToken).ConfigureAwait(false);
128return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
146return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false);
157return await connection.TryInvokeAsync(compilationState, projectId, invocation, cancellationToken).ConfigureAwait(false);
173return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false);
186return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
197return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
216return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false);
233return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false);
246return await connection.TryInvokeAsync(solution1, solution2, invocation, cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (12)
218await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false),
323var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
349var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
351var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false);
352var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
375newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false);
441var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false);
443var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false);
538.SelectAsArrayAsync(static (symbol, solution, cancellationToken) => GetSymbolLocationAsync(solution, symbol, cancellationToken), solution, _cancellationToken).ConfigureAwait(false))
583var newLocation = await GetSymbolLocationAsync(solution, symbol, _cancellationToken).ConfigureAwait(false);
744var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document, _cancellationToken).ConfigureAwait(false);
791var semanticModel = await document.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false);
Rename\IRemoteRenamerService.cs (6)
91var tree = await document.GetRequiredSyntaxTreeAsync(cancellation).ConfigureAwait(false);
122static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false);
125static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false);
128static (sym, solution, cancellationToken) => sym.TryRehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false);
166locBuilder.Add(await loc.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false));
247var documentTextChanges = await RemoteUtilities.GetDocumentTextChangesAsync(OldSolution, _newSolutionWithoutRenamedDocument, cancellationToken).ConfigureAwait(false);
Rename\LightweightRenameLocations.cs (4)
52static (sym, solution, cancellationToken) => sym.TryRehydrateAsync(solution, cancellationToken), Solution, cancellationToken).ConfigureAwait(false);
58static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), Solution, cancellationToken).ConfigureAwait(false);
90cancellationToken).ConfigureAwait(false);
94var rehydratedLocations = await result.Value.RehydrateLocationsAsync(solution, cancellationToken).ConfigureAwait(false);
Storage\AbstractPersistentStorageService.cs (5)
57using (await _lock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
61_currentPersistentStorage = await CreatePersistentStorageAsync(solutionKey, workingFolder, faultInjector, cancellationToken).ConfigureAwait(false);
74var result = await TryCreatePersistentStorageAsync(solutionKey, workingFolderPath, faultInjector, cancellationToken).ConfigureAwait(false) ??
75await TryCreatePersistentStorageAsync(solutionKey, workingFolderPath, faultInjector, cancellationToken).ConfigureAwait(false);
92return await TryOpenDatabaseAsync(solutionKey, workingFolderPath, databaseFilePath, faultInjector, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Microsoft.DotNet.Helix.Client (47)
generated-code\Aggregate.cs (11)
216using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
311using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
416using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
528using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
635using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
777using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
871using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
946using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
1063using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
1183using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
1264using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
Microsoft.DotNet.Internal.SymbolHelper (2)
Microsoft.Extensions.AI.Abstractions (7)
Functions\AIFunctionFactory.cs (7)
577ReflectionInvoke(FunctionDescriptor.Method, target, args), cancellationToken).ConfigureAwait(true);
885return await marshalResult(null, null, cancellationToken).ConfigureAwait(true);
905return await marshalResult(null, null, cancellationToken).ConfigureAwait(true);
930return await marshalResult(result, taskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true);
939return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
957return await marshalResult(result, asTaskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true);
967return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (14)
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Microsoft.Extensions.AI.Evaluation.Safety (19)
Microsoft.Extensions.AI.Ollama (1)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.Caching.Hybrid (6)
Microsoft.Extensions.Caching.StackExchangeRedis (4)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (8)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience (5)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Options.Contextual.Tests (1)
Microsoft.Extensions.ServiceDiscovery (6)
Microsoft.Extensions.ServiceDiscovery.Dns (13)
Resolver\DnsResolver.cs (11)
137AddressResult[] ipv4Addresses = await ipv4AddressesTask.ConfigureAwait(false);
138AddressResult[] ipv6Addresses = await ipv6AddressesTask.ConfigureAwait(false);
348(SendQueryError error, TResult[] result) = await SendQueryWithRetriesAsync(name, dnsSafeName, queryType, processResponseFunc, cancellationToken).ConfigureAwait(false);
377SendQueryResult queryResult = await SendQueryToServerWithTimeoutAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cancellationToken).ConfigureAwait(false);
472return await SendQueryToServerAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cts.Token).ConfigureAwait(false);
516(responseReader, header) = await SendDnsQueryCoreUdpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false);
523(responseReader, header, sendError) = await SendDnsQueryCoreTcpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false);
727await socket.SendToAsync(memory.Slice(0, length), SocketFlags.None, serverEndPoint, cancellationToken).ConfigureAwait(false);
737int packetLength = await socket.ReceiveAsync(memory, SocketFlags.None, cancellationToken).ConfigureAwait(false);
778await socket.SendAsync(buffer.AsMemory(0, length + 2), SocketFlags.None, cancellationToken).ConfigureAwait(false);
784int read = await socket.ReceiveAsync(buffer.AsMemory(bytesRead), SocketFlags.None, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.ML.Data (1)
Microsoft.ML.Tokenizers (12)
Microsoft.VisualBasic.Forms (1)
Microsoft.VisualBasic.Forms.Tests (1)
Microsoft.VisualStudio.LanguageServices (45)
ValueTracking\ValueTrackingCommandHandler.cs (5)
136solution, child, children: [], toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false);
146solution, child, children: [], toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false);
151solution, parent, childItems.ToImmutable(), toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false);
169var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);
181var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.DevKit (4)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Xaml (9)
Roslyn.Diagnostics.Analyzers (60)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (2)
Shared (3)
System.Diagnostics.Process (1)
System.Formats.Tar (12)
System.IO.Compression (11)
System\IO\Compression\ZipBlocks.Async.cs (6)
63int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
88int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
151int bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
156bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
203int realBytesRead = await furtherReads.ReadAtLeastAsync(collatedHeader.AsMemory(remainingBufferLength..), bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
248int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System.IO.Compression.Brotli (1)
System.IO.Pipelines (11)
System.IO.Pipes (3)
System.Net.Http (92)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
241HttpResponseMessage response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
255if (await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false))
258response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
265await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false))
268response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
300response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (15)
419response = await TrySendUsingHttp3Async(request, cancellationToken).ConfigureAwait(false);
444connection = await http2ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false);
452await connection.InitialSettingsReceived.WaitWithCancellationAsync(cancellationToken).ConfigureAwait(false);
476connection = await http11ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false);
569stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, cancellationToken).ConfigureAwait(false);
574stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false);
579stream = await ConnectToTcpHostAsync(_proxyUri!.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false);
584stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false);
590stream = await EstablishProxyTunnelAsync(async, cancellationToken).ConfigureAwait(false);
601stream = await EstablishSocksTunnel(request, async, cancellationToken).ConfigureAwait(false);
614sslStream = await ConnectHelper.EstablishSslConnectionAsync(GetSslOptionsForRequest(request), request, async, stream, cancellationToken).ConfigureAwait(false);
667stream = await streamTask.ConfigureAwait(false) ?? throw new HttpRequestException(SR.net_http_null_from_connect_callback);
744newStream = await streamTask.ConfigureAwait(false);
777HttpResponseMessage tunnelResponse = await _poolManager.SendProxyConnectAsync(tunnelRequest, _proxyUri!, async, cancellationToken).ConfigureAwait(false);
800Stream stream = await ConnectToTcpHostAsync(_proxyUri.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (4)
265connection = await CreateHttp11ConnectionAsync(queueItem.Request, true, cts.Token).ConfigureAwait(false);
296(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint) = await ConnectAsync(request, async, cancellationToken).ConfigureAwait(false);
297return await ConstructHttp11ConnectionAsync(async, stream, transportContext, request, activity, remoteEndPoint, cancellationToken).ConfigureAwait(false);
302Stream newStream = await ApplyPlaintextFilterAsync(async, stream, HttpVersion.Version11, request, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
187(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint) = await ConnectAsync(queueItem.Request, true, cts.Token).ConfigureAwait(false);
204connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, cts.Token).ConfigureAwait(false);
216connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, cts.Token).ConfigureAwait(false);
248stream = await ApplyPlaintextFilterAsync(async: true, stream, HttpVersion.Version20, request, cancellationToken).ConfigureAwait(false);
347http11Connection = await ConstructHttp11ConnectionAsync(true, stream, transportContext, request, activity, remoteEndPoint, cancellationToken).ConfigureAwait(false);
System.Net.Http.Json (14)
System\Net\Http\Json\HttpContentJsonExtensions.cs (8)
86using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false))
88return await JsonSerializer.DeserializeAsync(contentStream, type, options ?? JsonSerializerOptions.Web, cancellationToken).ConfigureAwait(false);
96using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false))
98return await JsonSerializer.DeserializeAsync<T>(contentStream, options ?? JsonSerializerOptions.Web, cancellationToken).ConfigureAwait(false);
118using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false))
120return await JsonSerializer.DeserializeAsync(contentStream, type, context, cancellationToken).ConfigureAwait(false);
126using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false))
128return await JsonSerializer.DeserializeAsync(contentStream, jsonTypeInfo, cancellationToken).ConfigureAwait(false);
System.Net.Mail (4)
System.Net.Ping (3)
System.Net.Quic (3)
System.Net.Requests (1)
System.Net.Security (13)
System\Net\Security\NegotiateStream.cs (4)
366int readBytes = await ReadAllAsync(InnerStream, _readHeader, allowZeroRead: true, cancellationToken).ConfigureAwait(false);
391readBytes = await ReadAllAsync(InnerStream, new Memory<byte>(_readBuffer, 0, readBytes), allowZeroRead: false, cancellationToken).ConfigureAwait(false);
450stream, buffer, buffer.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
864byte[]? message = await _framer.ReadMessageAsync<TIOAdapter>(InnerStream, cancellationToken).ConfigureAwait(false);
System.Net.ServerSentEvents (3)
System.Net.Sockets (3)
System.Net.WebClient (2)
System.Net.WebSockets (6)
System.Private.CoreLib (26)
System.Private.Xml (12)
System.Private.Xml.Linq (2)
System.Security.Cryptography (8)
System\Security\Cryptography\CryptoStream.cs (4)
243return await ReadAsyncCore(buffer, cancellationToken, useAsync: true).ConfigureAwait(false);
351await _stream.ReadAsync(new Memory<byte>(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
428await _stream.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
730bytesRead = await ReadAsync(rentedBuffer.AsMemory(0, bufferSize), cancellationToken).ConfigureAwait(false);
System.Security.Cryptography.Cose (1)
System.Text.Json (12)
System.Threading.Channels (3)
System.Threading.RateLimiting (2)
System.Windows.Forms (1)
Test.Utilities (13)
TestDiscoveryWorker (1)
Text.Analyzers (59)