4056 references to ConfigureAwait
aspire (242)
Commands\ExportCommand.cs (3)
202await AddConsoleLogsAsync(exportArchive, connection, resourceName, snapshots, hiddenResourceNames, cancellationToken).ConfigureAwait(false);
212await AddStructuredLogsAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false);
219await AddTracesAsync(exportArchive, client!, baseUrl!, resolvedTelemetryResources, allOtlpResources, cancellationToken).ConfigureAwait(false);
Documentation\CachedHttpDocumentFetcher.cs (5)
59await cache.SetETagAsync(storageKey, null, cancellationToken).ConfigureAwait(false);
68await cache.SetETagAsync(storageKey, retryETag, cancellationToken).ConfigureAwait(false);
71await cache.SetAsync(storageKey, retryContent, cancellationToken).ConfigureAwait(false);
82await cache.SetETagAsync(storageKey, newETag, cancellationToken).ConfigureAwait(false);
86await cache.SetAsync(storageKey, content, cancellationToken).ConfigureAwait(false);
Documentation\Docs\DocsCache.cs (19)
61await MigrateLegacyIndexFingerprintAsync(cancellationToken).ConfigureAwait(false);
62await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false);
77await _contentCache.SetJsonAsync(_indexCacheKey, legacyDocuments, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false);
78await MigrateLegacyIndexFingerprintAsync(cancellationToken).ConfigureAwait(false);
79await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false);
85await _contentCache.SetJsonAsync(_indexCacheKey, documents, JsonSourceGenerationContext.Default.LlmsDocumentArray, cancellationToken).ConfigureAwait(false);
86await ClearLegacyCacheAsync(cancellationToken).ConfigureAwait(false);
94await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false);
109await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false);
110await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false);
116await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, fingerprint, cancellationToken).ConfigureAwait(false);
117await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false);
138await _contentCache.SetAsync(_indexSourceFingerprintCacheKey, legacyFingerprint, cancellationToken).ConfigureAwait(false);
144await ClearLegacySourceCacheAsync(cancellationToken).ConfigureAwait(false);
145await ClearLegacyIndexCacheAsync(cancellationToken).ConfigureAwait(false);
155await _contentCache.InvalidateAsync(_llmsTxtUrl, cancellationToken).ConfigureAwait(false);
156await _contentCache.SetETagAsync(_llmsTxtUrl, null, cancellationToken).ConfigureAwait(false);
166await _contentCache.InvalidateJsonAsync(_legacyIndexCacheKey, cancellationToken).ConfigureAwait(false);
167await _contentCache.InvalidateAsync(_legacyIndexSourceFingerprintCacheKey, cancellationToken).ConfigureAwait(false);
DotNet\DotNetCliRunner.cs (6)
275await StartBackchannelAsync(null, socketPath!, backchannelCompletionSource, backchannelParentContext, cancellationToken).ConfigureAwait(false);
282await backchannel.WaitForDisconnectAsync(cancellationToken).ConfigureAwait(false);
520await backchannel.ConnectAsync(socketPath, connectionAttempts, cancellationToken).ConfigureAwait(false);
562await Task.Delay(1000, cancellationToken).ConfigureAwait(false);
878await Task.Delay(TimeSpan.FromSeconds(attempt + 1), cancellationToken).ConfigureAwait(false);
1611await _diskCache.SetAsync(rawKey, stdout, cancellationToken).ConfigureAwait(false);
Projects\PrebuiltAppHostServer.cs (7)
203cancellationToken).ConfigureAwait(false);
212await WriteAppSettingsAsync(_workingDirectory, closureManifest.AppSettingsContent, cancellationToken).ConfigureAwait(false);
224await WriteAppSettingsAsync(_workingDirectory, appSettingsContent, cancellationToken).ConfigureAwait(false);
649await File.WriteAllTextAsync(Path.Combine(objDir, RestoreStampFileName), fingerprint, cancellationToken).ConfigureAwait(false);
815await WriteRestoreStampAsync(restoreDir, restoreFingerprint, _logger, cancellationToken).ConfigureAwait(false);
859cancellationToken).ConfigureAwait(false);
1712cancellationToken).ConfigureAwait(false);
aspire-managed (6)
Aspire.Acquisition.Tests (1)
Aspire.Cli.Tests (19)
Aspire.Dashboard (144)
DashboardEndpointsBuilder.cs (6)
40CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false);
158await StreamNdjsonAsync(httpContext, service.FollowSpansAsync(resource, traceId, hasError, search, cancellationToken), cancellationToken).ConfigureAwait(false);
190await StreamNdjsonAsync(httpContext, service.FollowLogsAsync(resource, traceId, severity, search, cancellationToken), cancellationToken).ConfigureAwait(false);
263await httpContext.Response.WriteAsync(json, cancellationToken).ConfigureAwait(false);
264await httpContext.Response.WriteAsync("\n", cancellationToken).ConfigureAwait(false);
265await httpContext.Response.Body.FlushAsync(cancellationToken).ConfigureAwait(false);
Model\TelemetryImportService.cs (11)
67await ImportCoreAsync(fileName, stream, allowZipFile: true, cancellationToken).ConfigureAwait(false);
85await stream.CopyToAsync(memoryStream, cancellationToken).ConfigureAwait(false);
88await ImportZipAsync(memoryStream, cancellationToken).ConfigureAwait(false);
91await ImportJsonAsync(fileName, stream, cancellationToken).ConfigureAwait(false);
110await ImportCoreAsync(entry.Name, entryStream, allowZipFile: false, cancellationToken).ConfigureAwait(false);
147await ImportLogsAsync(telemetryData.ResourceLogs).ConfigureAwait(false);
154await ImportTracesAsync(telemetryData.ResourceSpans).ConfigureAwait(false);
161await ImportMetricsAsync(telemetryData.ResourceMetrics).ConfigureAwait(false);
178await _telemetryRepositoryWriter.AddLogsAsync(addContext, protobufRequest.ResourceLogs).ConfigureAwait(false);
189await _telemetryRepositoryWriter.AddTracesAsync(addContext, protobufRequest.ResourceSpans).ConfigureAwait(false);
200await _telemetryRepositoryWriter.AddMetricsAsync(addContext, protobufRequest.ResourceMetrics).ConfigureAwait(false);
ServiceClient\DashboardClient.cs (19)
354await WatchWithRecoveryAsync(WatchResourcesAsync, "resources", cancellationToken).ConfigureAwait(false);
359await WatchWithRecoveryAsync(WatchInteractionsAsync, "interactions", cancellationToken).ConfigureAwait(false);
361}, cancellationToken)).ConfigureAwait(false);
402await Task.Delay(delay, delayCts.Token).ConfigureAwait(false);
493await Task.Delay(delay, delayCts.Token).ConfigureAwait(false);
665await _resourceRepositoryWriter.ReplaceResourcesAsync(response.InitialData.Resources).ConfigureAwait(false);
669await _resourceRepositoryWriter.ApplyChangesAsync(response.Changes.Value).ConfigureAwait(false);
714await call.RequestStream.WriteAsync(update).ConfigureAwait(false);
850await _initialDataReceivedTcs.Task.WaitAsync(cts.Token).ConfigureAwait(false);
940await MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false);
961await _resourceRepositoryWriter.AddConsoleLogsAsync(resourceName, response.LogLines).ConfigureAwait(false);
977await readTask.ConfigureAwait(false);
984await MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false);
995await _resourceRepositoryWriter.AddConsoleLogsAsync(resourceName, response.LogLines).ConfigureAwait(false);
1014await _resourceRepositoryWriter.MarkConsoleLogsLoadedAsync(resourceName).ConfigureAwait(false);
1137await call.RequestStream.WriteAsync(chunk, combinedTokens.Token).ConfigureAwait(false);
1144await call.RequestStream.WriteAsync(new UploadFileChunk { FileName = fileName, InteractionId = interactionId, InputName = inputName }, combinedTokens.Token).ConfigureAwait(false);
1147await call.RequestStream.CompleteAsync().ConfigureAwait(false);
1165await TaskHelpers.WaitIgnoreCancelAsync(_connection, _logger, "Unexpected error from connection task.").ConfigureAwait(false);
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (441)
ApplicationModel\ResourceExtensions.cs (10)
282await callback.Callback(context).ConfigureAwait(false);
334await annotation.Callback(context).ConfigureAwait(false);
429await callback.Callback(context).ConfigureAwait(false);
528await annotation.Callback(context).ConfigureAwait(false);
629await callback.Callback(containerRunArgsContext).ConfigureAwait(false);
1340await callback.Callback(context).ConfigureAwait(false);
1561await GatherDirectDependenciesAsync(resource, dependencies, newDependencies, executionContext, options, cancellationToken).ConfigureAwait(false);
1577await GatherDirectDependenciesAsync(dep, dependencies, newDependencies, executionContext, options, cancellationToken).ConfigureAwait(false);
1676await ann.Callback(context).ConfigureAwait(false);
1717await ann.Callback(context).ConfigureAwait(false);
ApplicationModel\ResourceNotificationService.cs (18)
173await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false);
176}, cancellationToken, onDependencyReady).ConfigureAwait(false);
279await resourceEvent.Snapshot.ResourceReadyEvent!.EventTask.WaitAsync(cancellationToken).ConfigureAwait(false);
317await Task.WhenAll(tasks).ConfigureAwait(false);
363await onDependencyReady(resourceId).ConfigureAwait(false);
387await Task.WhenAll(tasks).ConfigureAwait(false);
427await postRunningAction(resourceLogger, displayName, resourceId, resourceEvent).ConfigureAwait(false);
431await onDependencyReady(resourceId).ConfigureAwait(false);
460}, cancellationToken, onDependencyReady).ConfigureAwait(false);
512await PublishWaitingForDependenciesAsync(resource, pendingDependencyCounts.Keys).ConfigureAwait(false);
518await pendingDependencyLock.WaitAsync(CancellationToken.None).ConfigureAwait(false);
539await PublishWaitingForDependenciesAsync(resource, waitingFor).ConfigureAwait(false);
543await ClearWaitingForDependenciesAsync(resource).ConfigureAwait(false);
561await Task.WhenAll(pendingDependencies).ConfigureAwait(false);
564await pendingDependencyLock.WaitAsync(CancellationToken.None).ConfigureAwait(false);
577await ClearWaitingForDependenciesAsync(resource).ConfigureAwait(false);
1051await readyEventTask.ConfigureAwait(false);
1234await PublishUpdateAsync(resource, resourceName, stateFactory).ConfigureAwait(false);
Dcp\ContainerCreator.cs (18)
263await CreateHostDependentContainerAsync(cr, hostDependencies, cctx, factory, cancellationToken).ConfigureAwait(false);
267await BuildAndCreateContainerAsync(cr, logger, factory, cancellationToken).ConfigureAwait(false);
305await ApplyBuildArgumentsAsync(dcpContainer, cr.ModelResource, _executionContext, logger, cToken).ConfigureAwait(false);
393await factory.CreateDcpObjectsAsync(new[] { dcpContainer }, cToken).ConfigureAwait(false);
399await factory.CreateRenderedResourcesAsync(containerExecCreator, containerExes, EmptyCreationContext.s_instance, cToken).ConfigureAwait(false);
413await factory.CreateDcpObjectsAsync([containerExe], cancellationToken).ConfigureAwait(false);
491await factory.CreateDcpObjectsAsync([tunnelProxy], cancellationToken).ConfigureAwait(false);
492await WaitForTunnelProxyAsync(tunnelProxy, factory, cancellationToken).ConfigureAwait(false);
505await cctx.ContainerPrerequisitesReady.WaitAsync(cancellationToken).ConfigureAwait(false);
515await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
531await Task.WhenAll([cctx.ContainerPrerequisitesReady, cctx.ContainerTunnelPrerequisitesReady]).WaitAsync(cancellationToken).ConfigureAwait(false);
534await factory.CreateDcpObjectsAsync(serviceObjects, cancellationToken).ConfigureAwait(false);
540await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
560await _tunnelSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
573await factory.UpdateWithEffectiveAddressInfo(serviceObjects, cancellationToken, TimeSpan.FromMinutes(1)).ConfigureAwait(false);
667await EnsureHostConnectivityAsync(hostDependencies, cctx, factory, cToken).ConfigureAwait(false);
676await BuildAndCreateContainerAsync(cr, _loggerService.GetLogger(cr.ModelResource), factory, cToken).ConfigureAwait(false);
933await DockerfileHelper.ExecuteDockerfileFactoryAsync(dockerfileBuildAnnotation, modelContainerResource, executionContext.Services, cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (46)
191await _executorEvents.PublishAsync(new OnResourcesPreparedContext(ct)).ConfigureAwait(false);
199await createServices.ConfigureAwait(false);
204await UpdateWithEffectiveAddressInfo(proxiedWithNoAddress, ct, TimeSpan.FromMinutes(1)).ConfigureAwait(false);
211await Task.WhenAll([getProxyAddresses, createContainerNetworks]).WaitAsync(ct).ConfigureAwait(false);
248await createWorkloadEndpoints.ConfigureAwait(false);
250await CreateRenderedResourcesAsync(_executableCreator, executables, EmptyCreationContext.s_instance, ct).ConfigureAwait(false);
259await createWorkloadEndpoints.ConfigureAwait(false);
261await CreateRenderedResourcesAsync(_containerCreator, containers, cctx, ct).ConfigureAwait(false);
265await Task.WhenAll(createExecutables, createContainers).WaitAsync(ct).ConfigureAwait(false);
287await _resourceWatcher.StopAsync(cancellationToken).ConfigureAwait(false);
302await _kubernetesService.CleanupResourcesAsync(cancellationToken).ConfigureAwait(false);
311await _kubernetesService.StopServerAsync(Model.ResourceCleanup.Full, cancellationToken).ConfigureAwait(false);
327await StopAsync(disposeCts.Token).ConfigureAwait(false);
636await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false);
913await Task.WhenAll(tasks).WaitAsync(cancellationToken).ConfigureAwait(false);
949).ConfigureAwait(false);
970).ConfigureAwait(false);
990).ConfigureAwait(false);
995await CreateReplicaAsync(er).ConfigureAwait(false);
1001await PublishConnectionStringAvailableEventAsync(modelResource, cancellationToken).ConfigureAwait(false);
1006await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, modelResource, startingDcpName)).ConfigureAwait(false);
1010await CreateReplicaAsync(er).ConfigureAwait(false);
1017await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, modelResource, DcpResourceName: null)).ConfigureAwait(false);
1042await creator.CreateObjectAsync(er, context, resourceLogger, this, cancellationToken).ConfigureAwait(false);
1043await PublishConnectionStringAvailableEventAsync(er.ModelResource, cancellationToken).ConfigureAwait(false);
1054await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name, ex.Message)).ConfigureAwait(false);
1059await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false);
1138await appResource.Initialized.WaitAsync(cancellationToken).ConfigureAwait(false);
1209await appResource.Initialized.WaitAsync(cancellationToken).ConfigureAwait(false);
1218await PublishConnectionStringAvailableEventAsync(cr.ModelResource, cancellationToken).ConfigureAwait(false);
1219await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, cr.ModelResource, cr.DcpResourceName)).ConfigureAwait(false);
1224await PublishConnectionStringAvailableEventAsync(er.ModelResource, cancellationToken).ConfigureAwait(false);
1225await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, er.ModelResource, er.DcpResourceName)).ConfigureAwait(false);
1230await EnsureResourceDeletedAsync<Container>(resourceReference, cancellationToken).ConfigureAwait(false);
1235await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false);
1236await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false);
1238await _containerCreator.CreateObjectAsync(cr, cctx, resourceLogger, this, cancellationToken).ConfigureAwait(false);
1239await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false);
1242await EnsureResourceDeletedAsync<Executable>(resourceReference, cancellationToken).ConfigureAwait(false);
1247await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false);
1248await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false);
1249await _executableCreator.CreateObjectAsync(er, EmptyCreationContext.s_instance, resourceLogger, this, cancellationToken).ConfigureAwait(false);
1250await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false);
1267await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false);
1379await _distributedApplicationEventing.PublishAsync(ev, EventDispatchBehavior.BlockingSequential, ct).ConfigureAwait(false);
1398await _executorEvents.PublishAsync(new OnConnectionStringAvailableContext(ct, resource)).ConfigureAwait(false);
Orchestrator\ApplicationOrchestrator.cs (34)
112.ConfigureAwait(false);
186await completedTask.ConfigureAwait(false);
211await ProcessResourceUrlCallbacks(resource, cancellationToken).ConfigureAwait(false);
215await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
250.ConfigureAwait(false);
269.ConfigureAwait(false);
272await SetChildResourceAsync(context.Resource, state: KnownResourceStates.Starting, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false);
283await _eventing.PublishAsync(beforeResourceStartedEvent, context.CancellationToken).ConfigureAwait(false);
295await PublishResourcesInitialStateAsync(context.CancellationToken).ConfigureAwait(false);
300await PublishConnectionStringAvailableEvent(context.Resource, context.CancellationToken).ConfigureAwait(false);
465await callback.Callback(urlsCallbackContext).ConfigureAwait(false);
577await PublishResourceEndpointUrls(@event.Resource, cancellationToken).ConfigureAwait(false);
589await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false);
593await SetChildResourceAsync(context.Resource, context.Status.State, context.Status.StartupTimestamp, context.Status.FinishedTimestamp).ConfigureAwait(false);
608await PublishEventToHierarchy(r => new ResourceStoppedEvent(r, _serviceProvider, currentResourceEvent), context.Resource, context.CancellationToken).ConfigureAwait(false);
621await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = stateSnapshot }).ConfigureAwait(false);
625await SetChildResourceAsync(context.Resource, KnownResourceStates.FailedToStart, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false);
630await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false);
636await _dcpExecutor.RunApplicationAsync(cancellationToken).ConfigureAwait(false);
639await _eventing.PublishAsync(afterResourcesCreatedEvent, cancellationToken).ConfigureAwait(false);
643await lifecycleHook.AfterResourcesCreatedAsync(_model, cancellationToken).ConfigureAwait(false);
651await _dcpExecutor.StopAsync(cancellationToken).ConfigureAwait(false);
673}).ConfigureAwait(false);
679await _dcpExecutor.StartResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false);
686await _dcpExecutor.StopResourceAsync(resourceReference, cancellationToken).ConfigureAwait(false);
704}).ConfigureAwait(false);
708.ConfigureAwait(false);
715await _parameterProcessor.InitializeParametersAsync(_model.Resources.OfType<ParameterResource>(), waitForResolution: false).ConfigureAwait(false);
736}).ConfigureAwait(false);
740await _eventing.PublishAsync(initializeEvent, EventDispatchBehavior.NonBlockingConcurrent, cancellationToken).ConfigureAwait(false);
761await _eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false);
776await PublishConnectionStringAvailableEvent(child, cancellationToken).ConfigureAwait(false);
785await _eventing.PublishAsync(createEvent(resource), cancellationToken).ConfigureAwait(false);
797await PublishEventToHierarchy(createEvent, child, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (17)
60await ProcessParameterAsync(parameterResource).ConfigureAwait(false);
72await task.ConfigureAwait(false);
89await HandleUnresolvedParametersAsync(_unresolvedParameters, cts.Token).ConfigureAwait(false);
115await CollectDependentParameterResourcesAsync(model, referencedParameters, cancellationToken).ConfigureAwait(false);
124await InitializeParametersAsync(allParameters, waitForResolution).ConfigureAwait(false);
130await SaveParametersToDeploymentStateAsync(allParameters, cancellationToken).ConfigureAwait(false);
164await UpdateParameterStateAsync(parameterResource, value, KnownResourceStates.Running).ConfigureAwait(false);
200await UpdateParameterStateAsync(parameterResource, ex.Message, new(stateText, stateStyle)).ConfigureAwait(false);
440await ApplyParameterValueAsync(parameterResource, value, shouldSave, cancellationToken).ConfigureAwait(false);
458await deploymentStateManager.DeleteSectionAsync(parameterSection, cancellationToken).ConfigureAwait(false);
483await UpdateParameterStateAsync(parameterResource, "Parameter value has been deleted", new(KnownResourceStates.ValueMissing, KnownResourceStateStyles.Warn)).ConfigureAwait(false);
510await UpdateParameterStateAsync(parameterResource, inputValue, KnownResourceStates.Running).ConfigureAwait(false);
523await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false);
582await allParametersResolved.Task.ConfigureAwait(false);
643await ApplyParameterValueAsync(parameter, inputValue, shouldSave, allParametersResolvedToken).ConfigureAwait(false);
685await deploymentStateManager.SaveSectionAsync(slot, cancellationToken).ConfigureAwait(false);
710}).ConfigureAwait(false);
Pipelines\DistributedApplicationPipeline.cs (13)
56await parameterProcessor.InitializeParametersAsync(context.Model, waitForResolution: true, context.CancellationToken).ConfigureAwait(false);
113await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false);
198await Task.Delay(TimeSpan.FromSeconds(2), timeProvider, waitCts.Token).ConfigureAwait(false);
370await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false);
583await ExecuteStepsAsTaskDag(stepsToExecute, stepsByName, context).ConfigureAwait(false);
614await ExecuteStepsSequentially(stepsToExecute, context).ConfigureAwait(false);
630await ExecuteConfigurationCallbacksAsync(context, allSteps).ConfigureAwait(false);
800await callback(configContext).ConfigureAwait(false);
873await Task.WhenAll(depTasks).ConfigureAwait(false);
911await ExecuteStepAsync(step, stepContext).ConfigureAwait(false);
949await Task.WhenAll(allStepTasks).ConfigureAwait(false);
1021await ExecuteStepAsync(step, stepContext).ConfigureAwait(false);
1134await step.Action(stepContext).ConfigureAwait(false);
Pipelines\Internal\DeploymentStateManagerBase.cs (12)
76await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
147await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
150await SaveStateToStorageAsync(state, sectionName: null, originalSectionData: null, cancellationToken).ConfigureAwait(false);
186await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
249await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false);
253await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
258await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false);
270await EnsureStateAndSectionAsync(section, cancellationToken).ConfigureAwait(false);
274await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
279await SaveStateToStorageAsync(_state, section.SectionName, section.OriginalData, cancellationToken).ConfigureAwait(false);
360await _stateLock.WaitAsync(cancellationToken).ConfigureAwait(false);
363await ClearStateStorageAsync(cancellationToken).ConfigureAwait(false);
Pipelines\ReportingStep.cs (3)
174await Reporter.CompleteStepAsync(this, completionText, completionState, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false);
187await Reporter.CompleteStepAsync(this, completionText.Value, completionState, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false);
220await Reporter.CompleteStepAsync(this, completionText, finalState, enableMarkdown: false, cancellationToken: CancellationToken.None).ConfigureAwait(false);
Pipelines\ReportingTask.cs (5)
57await ParentStep.Reporter.UpdateTaskAsync(this, statusText, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false);
64await ParentStep.Reporter.UpdateTaskAsync(this, statusText.Value, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false);
70await ParentStep.Reporter.CompleteTaskAsync(this, completionState, completionMessage, enableMarkdown: false, cancellationToken: cancellationToken).ConfigureAwait(false);
77await ParentStep.Reporter.CompleteTaskAsync(this, completionState, completionMessage.Value, enableMarkdown: true, cancellationToken: cancellationToken).ConfigureAwait(false);
91await CompleteAsync(cancellationToken: CancellationToken.None).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (14)
30await step.CompleteAsync(completionText, CompletionState.Completed, cancellationToken).ConfigureAwait(false);
46await step.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false);
63await step.CompleteAsync(completionText, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false);
79await step.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false);
96await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
112await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
128await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false);
144await task.UpdateAsync(statusText, cancellationToken).ConfigureAwait(false);
160await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false);
176await task.CompleteAsync(message, CompletionState.Completed, cancellationToken).ConfigureAwait(false);
192await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false);
208await task.CompleteAsync(message, CompletionState.CompletedWithWarning, cancellationToken).ConfigureAwait(false);
224await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
240await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (190)
AzureProvisioningController.cs (91)
552await RunOperationAsync(model, new ResetStateIntent(ReprovisionAfterReset: false), cancellationToken).ConfigureAwait(false);
560await RunOperationAsync(model, new ForgetResourceStateIntent(resourceName), cancellationToken).ConfigureAwait(false);
596await RunOperationAsync(model, new DeleteAzureResourcesIntent(), cancellationToken).ConfigureAwait(false);
643await CancelResourceCoreAsync(model, resourceName, cancellationToken).ConfigureAwait(false);
651await RunOperationAsync(model, new DeleteAzureResourceIntent(resourceName), cancellationToken).ConfigureAwait(false);
1037cancellationToken).ConfigureAwait(false);
1044await ApplyResourceOverridesAsync(resource.AzureResource, cancellationToken).ConfigureAwait(false);
1060}).ConfigureAwait(false);
1065await ProvisionAzureResourcesAsync(azureResources, parentChildLookup, cancellationToken).ConfigureAwait(false);
1082cancellationToken).ConfigureAwait(false);
1184await ClearCachedDeploymentStateAsync(bicepResource, preserveOverrides, environmentLocation, currentLocationOverride, preserveInferredLocationOverrides, cancellationToken).ConfigureAwait(false);
1207}).ConfigureAwait(false);
1217await deploymentStateManager.DeleteSectionAsync(section, cancellationToken).ConfigureAwait(false);
1451await Task.Delay(DriftCheckInterval, _timeProvider, stoppingToken).ConfigureAwait(false);
1452await CheckForDriftAsync(model, stoppingToken).ConfigureAwait(false);
1475await ProcessOperationLoopAsync(stoppingToken).ConfigureAwait(false);
1503await ProcessQueuedOperationAsync(operation).ConfigureAwait(false);
1548await RefreshCommandStatesAsync(queuedOperation.Model, operationCancellationToken).ConfigureAwait(false);
1576await RefreshCommandStatesAsync(queuedOperation.Model, CancellationToken.None).ConfigureAwait(false);
1628await PromptForMissingAzureContextAsync(model, stoppingToken).ConfigureAwait(false);
1694await provisioningOptionsManager.PersistProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false);
1729await DeleteSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
1732await ResetResourcesAsync(model, azureResources, preserveOverrides: false, cancellationToken).ConfigureAwait(false);
1734await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false);
1750await ResetResourcesAsync(model, targetResources, preserveOverrides: false, cancellationToken).ConfigureAwait(false);
1772await provisioningOptionsManager.PersistProvisioningOptionsAsync(cancellationToken).ConfigureAwait(false);
1783await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken, preserveInferredLocationOverrides: false).ConfigureAwait(false);
1784await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false);
1793await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken, preserveInferredLocationOverrides: false).ConfigureAwait(false);
1794await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false);
1809await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken).ConfigureAwait(false);
1810await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false);
1823cancellationToken).ConfigureAwait(false);
1830await ResetResourcesAsync(model, GetProvisionableAzureResources(model), preserveOverrides: true, cancellationToken).ConfigureAwait(false);
1831await PublishAzureEnvironmentStateAsync(model, KnownResourceStates.NotStarted, cancellationToken).ConfigureAwait(false);
1838cancellationToken).ConfigureAwait(false);
1913}).ConfigureAwait(false);
1925await DeleteCachedResourceForLocationChangeAsync(targetBicepResource, intent.Location, resourceDeletion, cancellationToken).ConfigureAwait(false);
1926await SetResourceLocationOverrideAsync(targetBicepResource.Name, intent.Location, cancellationToken).ConfigureAwait(false);
1933await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false);
1943await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false);
1981await PublishSyntheticProvisioningFailureAsync(model, targetResources, failureDetails).ConfigureAwait(false);
1985await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false);
2060}).ConfigureAwait(false);
2077}).ConfigureAwait(false);
2101}).ConfigureAwait(false);
2123await DeleteAzureResourceIdsAsync(resourceIds, intent.ResourceName, effectiveLocation, currentContext.Location, allowKeyVaultPurgeTimeout: true, cancellationToken).ConfigureAwait(false);
2124await ResetResourcesAsync(model, targetResources, preserveOverrides: true, cancellationToken).ConfigureAwait(false);
2133}).ConfigureAwait(false);
2145}).ConfigureAwait(false);
2201}).ConfigureAwait(false);
2212cancellationToken).ConfigureAwait(false);
2380await action().ConfigureAwait(false);
2754await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false);
2778await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false);
2816await CancelCachedDeploymentAsync(deploymentId, loggerService.GetLogger(resource.AzureResource), cancellationToken).ConfigureAwait(false);
2822cancellationToken).ConfigureAwait(false);
2853await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false);
2875await armClient.CancelDeploymentAsync(deploymentId, cancellationToken).ConfigureAwait(false);
2913await AddDeploymentOperationTargetResourceIdsAsync(bicepResource, resourceIds, cancellationToken).ConfigureAwait(false);
2978await armClient.DeleteResourceAsync(resourceId, cancellationToken).ConfigureAwait(false);
3487await resourceDeletion.ArmClient.DeleteResourceAsync(resourceDeletion.ResourceId, cancellationToken).ConfigureAwait(false);
3595await deploymentStateManager.SaveSectionAsync(section, cancellationToken).ConfigureAwait(false);
3601await deploymentStateManager.DeleteSectionAsync(section, cancellationToken).ConfigureAwait(false);
3640await notificationService.PublishUpdateAsync(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false);
3680await notificationService.PublishUpdateAsync(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false);
3686await PublishAsync(resource.AzureResource).ConfigureAwait(false);
3690await PublishAsync(resource.Resource).ConfigureAwait(false);
3709await PublishAsync(child).ConfigureAwait(false);
3719await resource.AzureResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false);
3730}).ConfigureAwait(false);
3738}).ConfigureAwait(false);
3745}).ConfigureAwait(false);
3761}).ConfigureAwait(false);
3780}).ConfigureAwait(false);
3802}).ConfigureAwait(false);
3827}).ConfigureAwait(false);
3867await roleAssignment.RolesResource.ProvisioningTaskCompletionSource!.Task.ConfigureAwait(false);
3876}).ConfigureAwait(false);
3918await eventing.PublishAsync(beforeResourceStartedEvent, cancellationToken).ConfigureAwait(false);
3940await WaitForProvisioningDependenciesAsync(bicepResource, executionContext, cancellationToken).ConfigureAwait(false);
3954cancellationToken).ConfigureAwait(false);
3964await PublishConnectionStringAvailableEventAsync(resource.Resource, parentChildLookup, cancellationToken).ConfigureAwait(false);
3987cancellationToken).ConfigureAwait(false);
3991await PublishConnectionStringAvailableEventAsync(resource.Resource, parentChildLookup, cancellationToken).ConfigureAwait(false);
4064.OfType<Task>()).ConfigureAwait(false);
4105await eventing.PublishAsync(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false);
4114await PublishConnectionStringAvailableEventAsync(child, parentChildLookup, cancellationToken).ConfigureAwait(false);
4139cancellationToken).ConfigureAwait(false);
4151cancellationToken).ConfigureAwait(false);
4186})).ConfigureAwait(false);
AzurePublishingContext.cs (16)
100await WriteAzureArtifactsOutputAsync(ReportingStep, model, environment, cancellationToken).ConfigureAwait(false);
102await SaveToDiskAsync(outputPath).ConfigureAwait(false);
131await MapParameterAsync(environment.ResourceGroupName, cancellationToken).ConfigureAwait(false);
132await MapParameterAsync(environment.Location, cancellationToken).ConfigureAwait(false);
133await MapParameterAsync(environment.PrincipalId, cancellationToken).ConfigureAwait(false);
188await VisitAsync(existingAnnotation.ResourceGroup, MapParameterAsync, cancellationToken).ConfigureAwait(false);
189await VisitAsync(existingAnnotation.Subscription, MapParameterAsync, cancellationToken).ConfigureAwait(false);
190await VisitAsync(existingAnnotation.Name, MapParameterAsync, cancellationToken).ConfigureAwait(false);
197await VisitAsync(scope.ResourceGroup, MapParameterAsync, cancellationToken).ConfigureAwait(false);
199await VisitAsync(scope.Subscription, MapParameterAsync, cancellationToken).ConfigureAwait(false);
205await VisitAsync(parameter.Value, MapParameterAsync, cancellationToken).ConfigureAwait(false);
371await computeEnvironmentTask.CompleteAsync(message, state, cancellationToken).ConfigureAwait(false);
410await dockerfileBuildAnnotation.EmitDockerfileArtifactsAsync(context, resourceDockerfilePath).ConfigureAwait(false);
524await visitor(value, cancellationToken).ConfigureAwait(false);
530await VisitAsync(reference, visitor, visited, cancellationToken).ConfigureAwait(false);
548await File.WriteAllTextAsync(bicepPath, compiledBicep.Value).ConfigureAwait(false);
Provisioning\BicepUtilities.cs (6)
91await SetScopeValueAsync(scope, "resourceGroup", targetScope.ResourceGroup, cancellationToken).ConfigureAwait(false);
93await SetScopeValueAsync(scope, "subscription", targetScope.Subscription, cancellationToken).ConfigureAwait(false);
150await SetParametersAsync(parameters, resource, skipKnownValues: true, cancellationToken: cancellationToken).ConfigureAwait(false);
153await SetScopeAsync(scope, resource, cancellationToken).ConfigureAwait(false);
192await SetParametersAsync(parameters, resource, skipKnownValues: true, cancellationToken: cancellationToken).ConfigureAwait(false);
195await SetScopeAsync(scope, resource, cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (31)
151}).ConfigureAwait(false);
221await ClearCachedRunningDeploymentStateAsync(stateSection, cancellationToken).ConfigureAwait(false);
243await ClearCachedRunningDeploymentStateAsync(stateSection, cancellationToken).ConfigureAwait(false);
272await PublishCachedRunningDeploymentStateAsync(resource, context, deploymentId, currentLocation, tracker, cancellationToken).ConfigureAwait(false);
287await Task.Delay(s_deploymentOperationPollingInterval, _timeProvider, cancellationToken).ConfigureAwait(false);
340}).ConfigureAwait(false);
387await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false);
422await PersistReconciledProvisioningStateAsync(stateSection, DeploymentStateProvisioningStateCanceled, cancellationToken).ConfigureAwait(false);
423await PublishReconciledTerminalStateAsync(resource, AzureProvisioningStrings.ResourceStateAzureDeploymentCanceled).ConfigureAwait(false);
431await PersistReconciledProvisioningStateAsync(stateSection, DeploymentStateProvisioningStateFailed, cancellationToken).ConfigureAwait(false);
432await PublishReconciledTerminalStateAsync(resource, AzureProvisioningStrings.ResourceStateAzureDeploymentFailed).ConfigureAwait(false);
442await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false);
450}).ConfigureAwait(false);
461await deploymentStateManager.SaveSectionAsync(stateSection, cancellationToken).ConfigureAwait(false);
465await deploymentStateManager.DeleteSectionAsync(stateSection, cancellationToken).ConfigureAwait(false);
545}).ConfigureAwait(false);
562.ConfigureAwait(false);
569await BicepUtilities.SetParametersAsync(parameters, resource, cancellationToken: cancellationToken).ConfigureAwait(false);
572await BicepUtilities.SetScopeAsync(scope, resource, cancellationToken: cancellationToken).ConfigureAwait(false);
592.ConfigureAwait(false);
624await deploymentStateManager.SaveSectionAsync(canceledStateSection, CancellationToken.None).ConfigureAwait(false);
661}).ConfigureAwait(false);
681await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false);
697.ConfigureAwait(false);
751await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false);
782await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false);
801await deploymentStateManager.SaveSectionAsync(stateSection, statePersistenceCancellationToken).ConfigureAwait(false);
838.ConfigureAwait(false);
952await Task.Delay(s_deploymentOperationPollingInterval, _timeProvider, cancellationToken).ConfigureAwait(false);
1001.ConfigureAwait(false);
1297await deployments.CancelAsync(deploymentName, CancellationToken.None).ConfigureAwait(false);
Aspire.Hosting.Azure.AppContainers (6)
Aspire.Hosting.Azure.AppService (9)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Kubernetes (4)
Aspire.Hosting.Azure.Kusto (2)
Aspire.Hosting.Azure.Kusto.Tests (2)
Aspire.Hosting.Azure.Sandboxes (54)
AzureSandboxContainerDeployment.cs (44)
263await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
294await diskTask.CompleteAsync($"Created sandbox disk image {diskImageId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false);
320await createTask.CompleteAsync($"Created sandbox {sandboxId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false);
333await lifecycleTask.CompleteAsync("Lifecycle policy configured", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false);
349await WaitForPublicHttpAsync(endpointUrl, GetPublicEndpointReadyTimeout(resource), context.CancellationToken).ConfigureAwait(false);
363await exposeTask.CompleteAsync(new MarkdownString($"Public URL: [{endpointUrl}]({endpointUrl})"), CompletionState.Completed, context.CancellationToken).ConfigureAwait(false);
398await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
428throwOnError: securityConfigurationChanged).ConfigureAwait(false);
440throwOnError: true).ConfigureAwait(false);
454throwOnError: true).ConfigureAwait(false);
464await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
509deploymentCleanupCts.Token).ConfigureAwait(false);
520deploymentCleanupCts.Token).ConfigureAwait(false);
530deploymentCleanupCts.Token).ConfigureAwait(false);
699await Task.Delay(TimeSpan.FromSeconds(2), context.CancellationToken).ConfigureAwait(false);
1045await callback.Callback(callbackContext).ConfigureAwait(false);
1116await callback.Callback(callbackContext).ConfigureAwait(false);
1294context.CancellationToken).ConfigureAwait(false);
1308throwOnError: true).ConfigureAwait(false);
1312context.CancellationToken).ConfigureAwait(false);
1324await DeleteExistingDeploymentAsync(context, client, scope, stateSection, throwOnError: true).ConfigureAwait(false);
1328await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, ownerId, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false);
1337throwOnError: true).ConfigureAwait(false);
1341await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, pendingOwnerCleanupId, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false);
1346await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, stableOwnerIdForScope, resource.Name, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false);
1348await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
1376await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
1395await DeleteExistingDeploymentAsync(context, client, scope, stateSection, throwOnError: true).ConfigureAwait(false);
1399await DeleteRemoteDeploymentsByResourceLabelAsync(context, client, scope, ownerId, resourceName, s_noExcludedIds, s_noExcludedIds, s_noExcludedIds, throwOnError: true).ConfigureAwait(false);
1408throwOnError: true).ConfigureAwait(false);
1423throwOnError: true).ConfigureAwait(false);
1425await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
1426await cleanupTask.CompleteAsync($"Deleted stale sandbox deployment {sectionName}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false);
1520await DeleteSandboxAsync(context, client, scope, sandboxId, GetStatePorts(stateSection), throwOnError).ConfigureAwait(false);
1533await DeleteDiskImageAsync(context, client, scope, diskImageId, throwOnError).ConfigureAwait(false);
1591throwOnError).ConfigureAwait(false);
1607await DeleteDiskImageAsync(context, client, scope, diskImage.Id, throwOnError).ConfigureAwait(false);
1644cancellationToken).ConfigureAwait(false);
1665cancellationToken).ConfigureAwait(false);
1680await Task.Delay(delay, cancellationToken).ConfigureAwait(false);
1730pollInterval).ConfigureAwait(false);
2175await Task.Delay(TimeSpan.FromSeconds(2), cancellationToken).ConfigureAwait(false);
2221await client.DeleteSandboxAsync(scope, sandboxId, effectiveCancellationToken).ConfigureAwait(false);
2256await client.DeleteDiskImageAsync(scope, diskImageId, effectiveCancellationToken).ConfigureAwait(false);
Internal\Adc\AzureDevComputeClient.cs (6)
197await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false);
214await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false);
255await EnsureSuccessAsync(response, method, path, cancellationToken).ConfigureAwait(false);
320await Task.Delay(networkRetryDelay, cancellationToken).ConfigureAwait(false);
346await Task.Delay(forbiddenRetryDelay, cancellationToken).ConfigureAwait(false);
365await Task.Delay(delay, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (16)
Aspire.Hosting.Blazor (13)
Aspire.Hosting.Blazor.Tests (3)
Aspire.Hosting.Browsers (49)
Aspire.Hosting.Browsers.Tests (53)
Aspire.Hosting.Containers.Tests (2)
Aspire.Hosting.DevTunnels (20)
DevTunnelResourceBuilderExtensions.cs (11)
143await devTunnelEnvironmentManager.EnsureUserLoggedInAsync(ct).ConfigureAwait(false);
173await Task.WhenAll(portTasks).ConfigureAwait(false);
197}).ConfigureAwait(false);
221await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, e.Services), EventDispatchBehavior.NonBlockingConcurrent, ct).ConfigureAwait(false);
708await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, services), EventDispatchBehavior.NonBlockingSequential, ct).ConfigureAwait(false);
713}).ConfigureAwait(false);
722await eventing.PublishAsync<ResourceEndpointsAllocatedEvent>(new(portResource, services), ct).ConfigureAwait(false);
746}).ConfigureAwait(false);
764}).ConfigureAwait(false);
793}).ConfigureAwait(false);
794await eventing.PublishAsync<ResourceStoppedEvent>(new(portResource, e.Services, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.DevTunnels.Tests (4)
Aspire.Hosting.Docker (25)
DockerComposeEnvironmentResource.cs (12)
154ctx.CancellationToken).ConfigureAwait(false);
158await ConfirmDestroyAsync(ctx, Name).ConfigureAwait(false);
179await runtime.ComposeDownAsync(composeContext, ctx.CancellationToken).ConfigureAwait(false);
183ctx.CancellationToken).ConfigureAwait(false);
189await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false);
422await runtime.ComposeUpAsync(composeContext, context.CancellationToken).ConfigureAwait(false);
430await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
435context.CancellationToken).ConfigureAwait(false);
439await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
468await runtime.ComposeDownAsync(composeContext, context.CancellationToken).ConfigureAwait(false);
473context.CancellationToken).ConfigureAwait(false);
477await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Dotnet.Tests (2)
Aspire.Hosting.DotnetTool.Tests (2)
Aspire.Hosting.EntityFrameworkCore (21)
EFResourceBuilderExtensions.cs (17)
438}).ConfigureAwait(false);
476}).ConfigureAwait(false);
486}).ConfigureAwait(false);
498}).ConfigureAwait(false);
509await Task.WhenAll(stdoutTask, stderrTask).ConfigureAwait(false);
510await process.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false);
518}).ConfigureAwait(false);
554}).ConfigureAwait(false);
579}).ConfigureAwait(false);
684await callback.Callback(context).ConfigureAwait(false);
849await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Waiting, KnownResourceStateStyles.Info).ConfigureAwait(false);
850await resourceNotificationService.WaitForDependenciesAsync(migrationResource, context.CancellationToken).ConfigureAwait(false);
853await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Running, KnownResourceStateStyles.Info).ConfigureAwait(false);
871await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.Finished, KnownResourceStateStyles.Info).ConfigureAwait(false);
875await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.FailedToStart, KnownResourceStateStyles.Error).ConfigureAwait(false);
883await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.NotStarted, KnownResourceStateStyles.Info).ConfigureAwait(false);
890await UpdateStateAsync(resourceNotificationService, migrationResource, KnownResourceStates.FailedToStart, KnownResourceStateStyles.Error).ConfigureAwait(false);
Aspire.Hosting.Foundry (31)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.GitHub.Models (2)
Aspire.Hosting.GitHub.Models.Tests (2)
Aspire.Hosting.JavaScript.Tests (2)
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.Kubernetes (59)
Deployment\HelmDeploymentEngine.cs (16)
141await HelmVersionValidator.EnsureMinimumVersionAsync(helmRunner, ctx.CancellationToken).ConfigureAwait(false);
200ctx.CancellationToken).ConfigureAwait(false);
206await ConfirmDestroyAsync(ctx, $"Uninstall Helm release '{savedReleaseName}' from namespace '{@namespace}'? This action cannot be undone.").ConfigureAwait(false);
212await HelmVersionValidator.EnsureMinimumVersionAsync(helmRunner, ctx.CancellationToken).ConfigureAwait(false);
213await HelmUninstallAsync(ctx, environment, savedReleaseName, @namespace).ConfigureAwait(false);
219await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false);
263await ResolveAndWriteDeployValuesAsync(outputPath, environment, context.CancellationToken).ConfigureAwait(false);
268context.CancellationToken).ConfigureAwait(false);
275context.CancellationToken).ConfigureAwait(false);
363await File.WriteAllTextAsync(overrideFilePath, overrideContent, cancellationToken).ConfigureAwait(false);
488await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
493context.CancellationToken).ConfigureAwait(false);
501context.CancellationToken).ConfigureAwait(false);
582await HelmUninstallAsync(context, environment, releaseName, @namespace).ConfigureAwait(false);
620context.CancellationToken).ConfigureAwait(false);
628context.CancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (13)
516await ProcessIngressResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false);
519await ProcessGatewayResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false);
522await ProcessPersistentVolumeResources(appModel, context.CancellationToken).ConfigureAwait(false);
954await BuildGatewayObjects(gatewayResource, deploymentTargets, logger, cancellationToken).ConfigureAwait(false);
1394context).ConfigureAwait(false);
1451await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false);
1500gatewayName, @namespace, environment, context).ConfigureAwait(false);
1564await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false);
1565await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false);
1897await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false);
2078await File.WriteAllTextAsync(manifestPath, minimal.ToJsonString(), context.CancellationToken).ConfigureAwait(false);
2201await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false);
2202await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false);
KubernetesPublishingContext.cs (17)
65await WriteKubernetesOutputAsync(model, environment).ConfigureAwait(false);
97await dockerfileBuildAnnotation.EmitDockerfileArtifactsAsync(dockerfileContext, resourceDockerfilePath).ConfigureAwait(false);
114await WriteKubernetesTemplatesForResource(resource, serviceResource.GetTemplatedResources()).ConfigureAwait(false);
115await AppendResourceContextToHelmValuesAsync(resource, serviceResource).ConfigureAwait(false);
124await WriteKubernetesTemplatesForResource(ingressResource, [generatedIngress]).ConfigureAwait(false);
135await WriteKubernetesTemplatesForResource(gatewayResource, gatewayObjects).ConfigureAwait(false);
144await WriteKubernetesTemplatesForResource(volumeResource, [generatedClaim]).ConfigureAwait(false);
148await WriteKubernetesHelmChartAsync(environment).ConfigureAwait(false);
157await WriteKubernetesHelmValuesAsync().ConfigureAwait(false);
206await AddValuesToHelmSectionAsync(resource, parameterItems, HelmExtensions.ParametersKey).ConfigureAwait(false);
207await AddValuesToHelmSectionAsync(resource, configItems, HelmExtensions.ConfigKey).ConfigureAwait(false);
208await AddValuesToHelmSectionAsync(resource, secretItems, HelmExtensions.SecretsKey).ConfigureAwait(false);
378await writer.WriteLineAsync(HelmExtensions.TemplateFileSeparator).ConfigureAwait(false);
379await writer.WriteAsync(yaml).ConfigureAwait(false);
404await File.WriteAllTextAsync(outputFile, valuesYaml, cancellationToken).ConfigureAwait(false);
409await ResolveHelmChartMetadataAsync(environment).ConfigureAwait(false);
426await File.WriteAllTextAsync(outputFile, chartYaml, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Maui (13)
Aspire.Hosting.Maui.Tests (2)
Aspire.Hosting.MySql (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.OpenAI (4)
Aspire.Hosting.OpenAI.Tests (2)
Aspire.Hosting.Orleans.Tests (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.Radius (22)
Publishing\RadiusInfrastructureBuilder.cs (6)
1131await callback.Callback(context).ConfigureAwait(false);
1155await ResolveEnvPartsAsync(rawValue, resource, parts).ConfigureAwait(false);
1212await ResolveEnvPartsAsync(connectionStringReference.Resource.ConnectionStringExpression, owner, parts).ConfigureAwait(false);
1215await ResolveEnvPartsAsync(resourceWithConnectionString.ConnectionStringExpression, owner, parts).ConfigureAwait(false);
1218await ResolveReferenceExpressionPartsAsync(referenceExpression, owner, parts).ConfigureAwait(false);
1258await ResolveEnvPartsAsync(expression.ValueProviders[i], owner, inner).ConfigureAwait(false);
Aspire.Hosting.Radius.Tests (1)
Aspire.Hosting.RemoteHost (9)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Rust (6)
Aspire.Hosting.Rust.Tests (1)
Aspire.Hosting.SqlServer (4)
Aspire.Hosting.Testing (12)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (18)
Aspire.Hosting.TestUtilities (3)
Aspire.Hosting.Valkey.Tests (2)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
Aspire.Playground.Tests (3)
Aspire.Templates.Tests (5)
Aspire.TerminalHost (28)
Aspire.TerminalHost.Tests (14)
Aspire.TestTools (3)
Binding.Tcp.IntegrationTests (1)
cdac-build-tool (1)
csc (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);
dotnet (14)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26430.105\contentFiles\cs\net11.0\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);
dotnet-aot (2)
dotnet-svcutil-lib (132)
CommandProcessorOptions.cs (22)
207await ProcessProjectFileOptionAsync(cancellationToken).ConfigureAwait(false);
212await ProcessUpdateOptionAsync(cancellationToken).ConfigureAwait(false);
215await ProcessOutputDirOptionAsync(this.Project?.DirectoryPath, cancellationToken).ConfigureAwait(false);
220await ProcessBootstrapDirOptionAsync(cancellationToken).ConfigureAwait(false);
223await ProcessNamespaceMappingsOptionAsync(cancellationToken).ConfigureAwait(false);
226await ProcessInputsAsync(cancellationToken).ConfigureAwait(false);
229await ProcessTargetFrameworkOptionAsync(cancellationToken).ConfigureAwait(false);
234await ProcessReferencesOptionAsync(cancellationToken).ConfigureAwait(false);
239await ProcessReferenceAssembliesAsync(cancellationToken).ConfigureAwait(false);
292await safeLogger.WriteMessageAsync($"Tool context: {this.ToolContext}", logToUI: false).ConfigureAwait(false);
309await safeLogger.WriteMessageAsync($"Resetting unexpected option '{InputsKey}' ...", logToUI: false).ConfigureAwait(false);
316await safeLogger.WriteMessageAsync($"Resetting unexpected option '{option.Name}' ...", logToUI: false).ConfigureAwait(false);
371await logger.WriteMessageAsync($"{ProjectFileKey}:\"{projectFile}\"", logToUI: false).ConfigureAwait(false);
393await ProcessOutputFileOptionAsync(defaultDir, cancellationToken).ConfigureAwait(false);
407await logger.WriteMessageAsync($"{OutputDirKey}:\"{this.OutputDir}\"", logToUI: false).ConfigureAwait(false);
465await logger.WriteMessageAsync($"{OutputFileKey}:\"{filePath}\"", logToUI: false).ConfigureAwait(false);
566await logger.WriteMessageAsync($"Update option read from \"{paramsFilePath}\" ...", logToUI: false).ConfigureAwait(false);
589await logger.WriteMessageAsync($"{BootstrapPathKey}:\"{this.BootstrapPath}\"", logToUI: false).ConfigureAwait(false);
625await logger.WriteMessageAsync(Shared.Resources.ResolvingProjectReferences, logToUI: this.ToolContext <= OperationalContext.Global).ConfigureAwait(false);
713await SetupBootstrappingDirectoryAsync(logger, cancellationToken).ConfigureAwait(false);
743await safeLogger.WriteMessageAsync($"resolved inputs: {inputFiles.Count()}", logToUI: false).ConfigureAwait(false);
1035await RuntimeEnvironmentHelper.TryCopyingConfigFiles(workingDirectory, this.BootstrapPath.FullName, logger, cancellationToken).ConfigureAwait(false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (10)
178await _sem.WaitAsync().ConfigureAwait(false);
183await FlushWriteAsync(cancellationToken).ConfigureAwait(false);
189await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
215await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
217await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
457await semaphoreLockTask.ConfigureAwait(false);
485await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
508await _stream.WriteAsync(_buffer, 0, totalUserBytes, cancellationToken).ConfigureAwait(false);
513await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
518await _stream.WriteAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentLoader.cs (10)
184await LoadAsync(this.MetadataSourceUrl.AbsoluteUri, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false);
190await LoadAsync(fileUri.LocalPath, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false);
223await LoadFromStreamAsync(fileStream, fileInfo.FullName, fileInfo.DirectoryName, cancellationToken).ConfigureAwait(false);
297await LoadAsXmlSchemaAsync(reader, uri, basePath, cancellationToken).ConfigureAwait(false);
300await LoadAsWsdlAsync(reader, uri, basePath, cancellationToken).ConfigureAwait(false);
306await LoadAsEPRAsync(reader, cancellationToken).ConfigureAwait(false);
326await LoadAsXmlSchemaIncludesAsync(schema, uri, basePath, cancellationToken).ConfigureAwait(false);
364await LoadAsXmlSchemaIncludesAsync(schema, wsdl.RetrievalUrl, basePath, cancellationToken).ConfigureAwait(false);
380await LoadAsync(schemaUri.LocalPath, baseUrl, basePath, cancellationToken).ConfigureAwait(false);
389await LoadFromStreamAsync(stream, schemaUri.AbsoluteUri, basePath, cancellationToken).ConfigureAwait(false);
Shared\MSBuildProj.cs (13)
687await SaveAsync(logger, cancellationToken).ConfigureAwait(false);
708await AsyncHelper.RunAsync(() => ProjectNode.Save(writer), cancellationToken).ConfigureAwait(false);
722await this.SaveAsync(logger, cancellationToken).ConfigureAwait(false);
778await safeLogger.WriteWarningAsync(Shared.Resources.WarningMultiFxOrNoSupportedDnxVersion, logToUI: true).ConfigureAwait(false);
782await safeLogger.WriteMessageAsync($"Resolved project reference count: {dependencies.Count()}", logToUI: false).ConfigureAwait(false);
844await safeLogger.WriteWarningAsync(Shared.Resources.WarningMultiFxOrNoSupportedDnxVersion, logToUI: true).ConfigureAwait(false);
849await safeLogger.WriteWarningAsync(Shared.Resources.WarningCannotResolveProjectReferences, logToUI: true).ConfigureAwait(false);
856await safeLogger.WriteWarningAsync(ex.Message, logToUI: false).ConfigureAwait(false);
860await safeLogger.WriteMessageAsync($"Package reference count: {packageDependencies.Count}", logToUI: false).ConfigureAwait(false);
937await safeLogger.WriteWarningAsync(ex.Message, logToUI: false).ConfigureAwait(false);
945await safeLogger.WriteWarningAsync("Deps file not found (project not built), unable to resolve assembly/project dependencies!", logToUI: false).ConfigureAwait(false);
948await safeLogger.WriteMessageAsync($"Assembly reference count: {assemblyDependencies.Count}", logToUI: false).ConfigureAwait(false);
1018await safeLogger.WriteMessageAsync($"deps file: {depsFile}", logToUI: false).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (32)
Program.cs (11)
277await Console.Error.WriteLineAsync($"'{path}' does not exist".AsMemory(), cancellationToken).ConfigureAwait(false);
378await Console.Out.WriteLineAsync($"Failed to create analyzer rules missing documentation file. Http response timed out".AsMemory(), cancellationToken).ConfigureAwait(false);
384await Console.Error.WriteLineAsync("One or more auto-generated documentation files were either edited manually, or not updated. Please revert changes made to the following files (if manually edited) and run `dotnet msbuild /t:pack` at the root of the repo to automatically update them:".AsMemory(), cancellationToken).ConfigureAwait(false);
821await Console.Error.WriteLineAsync($"Missing entry in {fileWithPath}".AsMemory(), cancellationToken).ConfigureAwait(false);
822await Console.Error.WriteLineAsync(line.AsMemory(), cancellationToken).ConfigureAwait(false);
877await Console.Error.WriteLineAsync($"'{assemblyPath}' does not exist".AsMemory(), cancellationToken).ConfigureAwait(false);
889await Console.Error.WriteLineAsync(ex.Message.AsMemory(), cancellationToken).ConfigureAwait(false);
915await Console.Error.WriteLineAsync($"Expected both '{shippedFile}' and '{unshippedFile}' to exist or not exist, but '{existingFile}' exists and '{nonExistingFile}' does not exist.".AsMemory(), cancellationToken).ConfigureAwait(false);
925await Console.Error.WriteLineAsync($"'{shippedFile}' exists but was not expected".AsMemory(), cancellationToken).ConfigureAwait(false);
954await Console.Error.WriteLineAsync(ex.Message.AsMemory(), cancellationToken).ConfigureAwait(false);
962await Console.Error.WriteLineAsync($"Could not find any 'AnalyzerReleases.Shipped.md' file".AsMemory(), cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
ILCompiler.DependencyAnalysisFramework (2)
Infrastructure.Tests (9)
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.Authorization (4)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Testing (30)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.Http.Connections.Client (29)
HttpConnection.cs (9)
212await StartAsyncCore(transferFormat, cancellationToken).ConfigureAwait(false);
226await _connectionLock.WaitAsync(cancellationToken).ConfigureAwait(false);
239await SelectAndStartTransport(transferFormat, cancellationToken).ConfigureAwait(false);
262await DisposeAsyncCore().ConfigureAwait(false);
273await _connectionLock.WaitAsync().ConfigureAwait(false);
284await _transport!.StopAsync().ConfigureAwait(false);
325await StartTransport(uri, _httpConnectionOptions.Transports, transferFormat, cancellationToken, useStatefulReconnect: false).ConfigureAwait(false);
423await StartTransport(connectUrl, transportType, transferFormat, cancellationToken, negotiationResponse.UseStatefulReconnect).ConfigureAwait(false);
547await transport.StartAsync(connectUrl, transferFormat, cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Identity (2)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
Microsoft.AspNetCore.InternalTesting (23)
Microsoft.AspNetCore.Mvc.Testing (3)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.Kestrel.Core (21)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (3)
Microsoft.AspNetCore.SignalR.Client.Core (59)
HubConnection.cs (55)
299await StartAsyncInner(cancellationToken).ConfigureAwait(false);
305await _state.WaitConnectionLockAsync(token: cancellationToken).ConfigureAwait(false);
322await StartAsyncCore(linkedToken).ConfigureAwait(false);
352await StopAsyncCore(disposing: false).ConfigureAwait(false);
368await StopAsyncCore(disposing: true).ConfigureAwait(false);
509await SendCoreAsyncCore(methodName, args, cancellationToken).ConfigureAwait(false);
556await HandshakeAsync(startingConnectionState, usedProtocolVersion, cancellationToken).ConfigureAwait(false);
576await SendHubMessage(startingConnectionState, PingMessage.Instance, cancellationToken).ConfigureAwait(false);
637Log.AuthenticationRefreshCallbackFailed).ConfigureAwait(false);
658Log.AuthenticationRefreshCallbackFailed).ConfigureAwait(false);
674await handler(argument).ConfigureAwait(false);
855await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
867await reconnectTask.ConfigureAwait(false);
868await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
945await connectionStateStopTask.ConfigureAwait(false);
1005await InvokeStreamCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false);
1170await SendStreamItemAsync(connectionState, streamId, enumerator.Current, tokenSource).ConfigureAwait(false);
1206await SendStreamItemAsync(connectionState, streamId, item, tokenSource).ConfigureAwait(false);
1221await SendStreamItemAsync(connectionState, streamId, streamValue, tokenSource).ConfigureAwait(false);
1230await SendWithLock(connectionState, new StreamItemMessage(streamId, item), tokenSource.Token).ConfigureAwait(false);
1243await createAndConsumeStream().ConfigureAwait(false);
1258await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
1265await SendHubMessage(connectionState, CompletionMessage.WithError(streamId, responseError), cancellationToken: default).ConfigureAwait(false);
1356await InvokeCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false);
1411await Task.WhenAll(streamTasks).ConfigureAwait(false);
1415await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
1423await SendHubMessage(_state.CurrentConnectionStateUnsynchronized, new CancelInvocationMessage(irq.InvocationId), cancellationToken: default).ConfigureAwait(false);
1462await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false);
1493await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false);
1556await SendHubMessage(connectionState, invocationMessage, cancellationToken).ConfigureAwait(false);
1587await SendHubMessage(connectionState, message, cancellationToken).ConfigureAwait(false);
1615await SendWithLock(connectionState, CompletionMessage.WithError(bindingFailure.InvocationId, "Client failed to parse argument(s)."), cancellationToken: default).ConfigureAwait(false);
1644await DispatchInvocationStreamItemAsync(streamItem, irq).ConfigureAwait(false);
1670await connectionState.AckAsync(ackMessage).ConfigureAwait(false);
1693await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, "Client didn't provide a result."), cancellationToken: default).ConfigureAwait(false);
1724await task.ConfigureAwait(false);
1743await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, resultException.Message), cancellationToken: default).ConfigureAwait(false);
1747await SendWithLock(connectionState, CompletionMessage.WithResult(invocation.InvocationId!, result), cancellationToken: default).ConfigureAwait(false);
1752await SendWithLock(connectionState, CompletionMessage.WithError(invocation.InvocationId!, "Client didn't provide a result."), cancellationToken: default).ConfigureAwait(false);
1936await invokeTask.ConfigureAwait(false);
2021await timerTask.ConfigureAwait(false);
2023await HandleConnectionClose(connectionState).ConfigureAwait(false);
2046await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
2102await InvokeEventHandlersAsync(closed, closeException, _logger, Log.ErrorDuringClosedEvent).ConfigureAwait(false);
2152await Task.Delay(nextRetryDelay.Value, _state.StopCts.Token).ConfigureAwait(false);
2158await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
2173await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
2179await StartAsyncCore(_state.StopCts.Token).ConfigureAwait(false);
2214await _state.WaitConnectionLockAsync(token: default).ConfigureAwait(false);
2272await InvokeEventHandlersAsync(reconnecting, closeException, _logger, Log.ErrorDuringReconnectingEvent).ConfigureAwait(false);
2292await InvokeEventHandlersAsync(reconnected, ConnectionId, _logger, Log.ErrorDuringReconnectedEvent).ConfigureAwait(false);
2560await ((ReceiveTask ?? Task.CompletedTask).ConfigureAwait(false));
2585await RunTimerActions().ConfigureAwait(false);
2676await _hubConnection.SendHubMessage(this, PingMessage.Instance).ConfigureAwait(false);
2812await WaitConnectionLockAsync(token, methodName).ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Microsoft.Build (3)
Microsoft.Build.Tasks.CodeAnalysis (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);
Microsoft.Build.Tasks.Core (14)
Microsoft.CodeAnalysis (24)
DiagnosticAnalyzer\AnalyzerDriver.cs (12)
654await ExecutePrimaryAnalysisTaskAsync(analysisScope, usingPrePopulatedEventQueue: true, cancellationToken).ConfigureAwait(false);
708await WhenInitializedTask.ConfigureAwait(false);
716await ProcessCompilationEventsAsync(analysisScope, usingPrePopulatedEventQueue, cancellationToken).ConfigureAwait(false);
879await this.WhenCompletedTask.ConfigureAwait(false);
1558await Task.WhenAll(workerTasks.Concat(syntaxTreeActionsTask).Concat(additionalFileActionsTask)).ConfigureAwait(false);
1581await ProcessEventAsync(completedEvent, analysisScope, cancellationToken).ConfigureAwait(false);
1638await ProcessEventAsync(compilationEvent, analysisScope, cancellationToken).ConfigureAwait(false);
1668await OnEventProcessedCoreAsync(e, processedAnalyzers, analysisScope, cancellationToken).ConfigureAwait(false);
1680await onSymbolAndMembersProcessedAsync(symbolDeclaredEvent.Symbol, analyzer).ConfigureAwait(false);
1712await processContainerOnMemberCompletedAsync(symbol.ContainingNamespace, symbol, analyzer).ConfigureAwait(false);
1715await processContainerOnMemberCompletedAsync(type, symbol, analyzer).ConfigureAwait(false);
1725await OnEventProcessedCoreAsync(processedContainerEvent, ImmutableArray.Create(analyzer), analysisScope, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (11)
340await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
347await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
354await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
378await driver.WhenInitializedTask.ConfigureAwait(false);
575await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
582await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
649await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
656await ComputeAnalyzerDiagnosticsAsync(analysisScope, cancellationToken).ConfigureAwait(false);
754await driver.WhenCompletedTask.ConfigureAwait(false);
795await attachQueueAndProcessAllEventsAsync(builder, driver, cancellationToken).ConfigureAwait(false);
828await driver.AttachQueueAndProcessAllEventsAsync(eventQueue, analysisScope, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Analyzers (21)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.BuildClient.Package (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (17)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (24)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
58await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false);
64await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false);
68await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
69await AddParameterCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (4)
57await HandleDeclarationAsync(document, editor, node, cancellationToken).ConfigureAwait(false);
74await HandleVariableDeclarationAsync(document, editor, varDecl, cancellationToken).ConfigureAwait(false);
78await HandleForEachStatementAsync(document, editor, forEach, cancellationToken).ConfigureAwait(false);
82await HandleDeclarationExpressionAsync(document, editor, declarationExpression, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (31)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (4)
57await HandleDeclarationAsync(document, editor, node, cancellationToken).ConfigureAwait(false);
74await HandleVariableDeclarationAsync(document, editor, varDecl, cancellationToken).ConfigureAwait(false);
78await HandleForEachStatementAsync(document, editor, forEach, cancellationToken).ConfigureAwait(false);
82await HandleDeclarationExpressionAsync(document, editor, declarationExpression, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.Features (246)
AddImport\AbstractAddImportFeatureService.cs (6)
185await FindResultsInAllSymbolsInStartingProjectAsync(allReferences, finder, exact, cancellationToken).ConfigureAwait(false);
194await FindResultsInUnreferencedProjectSourceSymbolsAsync(projectToAssembly, project, allReferences, maxResults, finder, exact, cancellationToken).ConfigureAwait(false);
198await FindResultsInUnreferencedMetadataSymbolsAsync(referenceToCompilation, project, allReferences, maxResults, finder, exact, cancellationToken).ConfigureAwait(false);
202await finder.FindNugetOrReferenceAssemblyReferencesAsync(allReferences, exact, cancellationToken).ConfigureAwait(false);
251linkedTokenSource.Token).ConfigureAwait(false);
308linkedTokenSource.Token).ConfigureAwait(false);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (5)
47await FindWorkerAsync(new(typeQuery.Name + AttributeSuffix, typeQuery.Arity), namespaceQuery, isAttributeSearch: true).ConfigureAwait(false);
49await FindWorkerAsync(typeQuery, namespaceQuery, isAttributeSearch: false).ConfigureAwait(false);
60allReferences, nameNode, typeQuery, namespaceQuery, isAttributeSearch, cancellationToken).ConfigureAwait(false);
67sourceName, sourceUrl, allReferences, nameNode, typeQuery, namespaceQuery, isAttributeSearch, cancellationToken).ConfigureAwait(false);
147cancellationToken: cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (4)
312containingNamespace, parameterNamingRule, isRecord, cancellationToken).ConfigureAwait(false);
316documentToEditorMap, cancellationToken).ConfigureAwait(false);
471project, result, tupleFieldNames, cancellationToken).ConfigureAwait(false);
484project, result, tupleFieldNames, cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (3)
145frozenProject, frozenDocument, callback, lazyProjectVersion, cancellationToken).ConfigureAwait(false);
172await ProcessProjectAsync(frozenSolution.GetRequiredProject(projectId), callback, cancellationToken).ConfigureAwait(false);
193project, specificDocument: null, callback, lazyProjectVersion, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (4)
155document, documentAnalysisScope.Span, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false);
169document, span: null, callback, cancellationToken).ConfigureAwait(false);
181document, span: null, diagnosticsBuilder.Add, cancellationToken).ConfigureAwait(false);
200semanticModel, span, hostCompilationWithAnalyzers, analyzerInfoCache.GetDiagnosticDescriptors, reportDiagnostic, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (3)
297await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, syntaxAnalyzers, AnalysisKind.Syntax, range, incrementalAnalysis: false, list, cancellationToken).ConfigureAwait(false);
298await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, semanticSpanAnalyzers, AnalysisKind.Semantic, range, incrementalAnalysis, list, cancellationToken).ConfigureAwait(false);
299await ComputeDocumentDiagnosticsAsync(this, document, compilationWithAnalyzers, logPerformanceInfo, semanticDocumentAnalyzers, AnalysisKind.Semantic, span: null, incrementalAnalysis: false, list, cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (6)
120await ExecuteCompilerAnalyzerAsync(compilerAnalyzerData, oldMemberSpans, builder).ConfigureAwait(false);
121await ExecuteSpanBasedAnalyzersAsync(spanBasedAnalyzers, oldMemberSpans, builder).ConfigureAwait(false);
122await ExecuteDocumentBasedAnalyzersAsync(documentBasedAnalyzers, oldMemberSpans, builder).ConfigureAwait(false);
144await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false);
156await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false);
168await ExecuteAnalyzersAsync(executor, analyzers, oldMemberSpans, builder).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (5)
127documentsToSearch, options, cancellationToken).ConfigureAwait(false);
233await AddLocationSpanAsync(symbol.Locations.First(), solution, spanSet, tagMap, HighlightSpanKind.Definition, cancellationToken).ConfigureAwait(false);
259await AddLocationSpanAsync(location, solution, spanSet, tagMap, HighlightSpanKind.Definition, cancellationToken).ConfigureAwait(false);
268await AddLocationSpanAsync(referenceLocation.Location, solution, spanSet, tagMap, referenceKind, cancellationToken).ConfigureAwait(false);
275await AddLocationSpanAsync(location, solution, spanSet, tagMap, HighlightSpanKind.Reference, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (19)
240await EnqueueFullProjectWorkItemAsync(addedProject, UnitTestingInvocationReasons.DocumentAdded, processSourceGeneratedDocuments).ConfigureAwait(false);
245await EnqueueWorkItemAsync(projectChanges, processSourceGeneratedDocuments).ConfigureAwait(continueOnCapturedContext: false);
250await EnqueueFullProjectWorkItemAsync(removedProject, UnitTestingInvocationReasons.DocumentRemoved, processSourceGeneratedDocuments).ConfigureAwait(false);
262await EnqueueFullProjectWorkItemAsync(solution.GetRequiredProject(projectId), invocationReasons, processSourceGeneratedDocuments).ConfigureAwait(false);
275await EnqueueWorkItemAsync(newProject.GetChanges(oldProject), processSourceGeneratedDocuments).ConfigureAwait(false);
304await EnqueueChangedDocumentWorkItemAsync(oldProject.GetRequiredDocument(documentId), newProject.GetRequiredDocument(documentId)).ConfigureAwait(false);
335await EnqueueChangedDocumentWorkItemAsync(oldDocument, newDocument).ConfigureAwait(continueOnCapturedContext: false);
384await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false);
387await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false);
390await EnqueueDocumentWorkItemAsync(project, documentId, document: null, invocationReasons).ConfigureAwait(false);
397await EnqueueDocumentWorkItemAsync(project, document.Id, document, invocationReasons).ConfigureAwait(false);
408await EnqueueWorkItemAsync(analyzer, project, documentId, document: null, invocationReasons).ConfigureAwait(false);
425await EnqueueProjectConfigurationChangeWorkItemAsync(projectChanges, processSourceGeneratedDocuments).ConfigureAwait(false);
428await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false);
433.ConfigureAwait(continueOnCapturedContext: false);
437await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false);
503await EnqueueFullProjectWorkItemAsync(projectChanges.NewProject, projectConfigurationChange, processSourceGeneratedDocuments).ConfigureAwait(false);
515await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, UnitTestingInvocationReasons.DocumentChanged).ConfigureAwait(false);
522await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, differenceResult.ChangeType, differenceResult.ChangedMember).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (7)
116await WaitForHigherPriorityOperationsAsync().ConfigureAwait(false);
140await ProcessDocumentAsync(Analyzers, workItem, documentCancellation).ConfigureAwait(false);
210await ProcessReanalyzeDocumentAsync(workItem, textDocument, cancellationToken).ConfigureAwait(false);
212await Processor.ProcessDocumentAnalyzersAsync(textDocument, analyzers, workItem, cancellationToken).ConfigureAwait(false);
218await RemoveDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
278c), cancellationToken).ConfigureAwait(false);
296await analyzer.RemoveDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (6)
26definitionTrackingContext, document, position, classificationOptions, cancellationToken).ConfigureAwait(false);
62context, document, position, classificationOptions, cancellationToken).ConfigureAwait(false);
100context, symbol, project, classificationOptions, cancellationToken).ConfigureAwait(false);
121await FindReferencesAsync(context, symbol, project, searchOptions, classificationOptions, cancellationToken).ConfigureAwait(false);
152context, symbol, project, searchOptions, classificationOptions, cancellationToken).ConfigureAwait(false);
239tokenValue, Type.GetTypeCode(tokenValue.GetType()), solution, progressAdapter, cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineHintsService.cs (2)
28await inlineParameterService.AddInlineHintsAsync(document, textSpan, options.ParameterOptions, options.DisplayOptions, displayAllOverride, result, cancellationToken).ConfigureAwait(false);
33await inlineTypeService.AddInlineHintsAsync(document, textSpan, options.TypeOptions, options.DisplayOptions, displayAllOverride, result, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (4)
106storageService, documentKeys, priorityDocumentKeys, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
138ProcessSingleProjectGroupAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false);
173}).ConfigureAwait(false);
176await onProjectCompleted().ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (4)
57projects, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
74projects, ProcessSingleProjectAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false);
87document, patternInfo, declaredSymbolInfoKindsSet, onItemFound, cancellationToken)).ConfigureAwait(false);
89await onProjectCompleted().ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (7)
50await SearchDocumentAndRelatedDocumentsInCurrentProcessAsync(document, searchPattern, kinds, onItemsFound, cancellationToken).ConfigureAwait(false);
71SearchRelatedDocumentsInCurrentProcessAsync()).ConfigureAwait(false);
99await SearchDocumentsInCurrentProcessAsync(relatedDocuments).ConfigureAwait(false);
185projects, priorityDocuments, searchPattern, kinds, onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
212SearchSingleProjectAsync, onItemsFound, args: default, cancellationToken).ConfigureAwait(false);
227document, patternInfo, declaredSymbolInfoKindsSet, onItemFound, cancellationToken)).ConfigureAwait(false);
229await onProjectCompleted().ConfigureAwait(false);
NavigateTo\NavigateToSearcher.cs (20)
149await SearchCurrentDocumentAsync(cancellationToken).ConfigureAwait(false);
153await SearchCurrentProjectAsync(documentSupport, cancellationToken).ConfigureAwait(false);
166await SearchAllProjectsAsync(isFullyLoaded, documentSupport, cancellationToken).ConfigureAwait(false);
176await ProgressItemsCompletedAsync(_remainingProgressItems, cancellationToken).ConfigureAwait(false);
192await AddProgressItemsAsync(1, cancellationToken).ConfigureAwait(false);
196cancellationToken).ConfigureAwait(false);
226await SearchSpecificProjectsAsync(isFullyLoaded, documentSupport, orderedProjects, cancellationToken).ConfigureAwait(false);
252cancellationToken).ConfigureAwait(false);
255await SearchFullyLoadedProjectsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false);
258await SearchGeneratedDocumentsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false);
266await AddProgressItemsAsync(projectCount, cancellationToken).ConfigureAwait(false);
267await SearchCachedDocumentsAsync(orderedProjects, seenItems, cancellationToken).ConfigureAwait(false);
373SearchCoreAsync).ConfigureAwait(false);
406nonDuplicates.ToImmutableAndClear(), _activeDocument, cancellationToken).ConfigureAwait(false);
409() => this.ProgressItemsCompletedAsync(count: 1, cancellationToken)).ConfigureAwait(false);
451await onProjectCompleted().ConfigureAwait(false);
457onResultsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
508await onProjectCompleted().ConfigureAwait(false);
513_solution, projects, _searchPattern, _kinds, _activeDocument, onResultsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
539await onProjectCompleted().ConfigureAwait(false);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (5)
50await CheckNodeAsync(context, document, node, cancellationToken).ConfigureAwait(false);
58await CheckTokenAsync(context, document, token, cancellationToken).ConfigureAwait(false);
83await CreateSpellCheckCodeIssueAsync(context, token, IsGeneric(name), cancellationToken).ConfigureAwait(false);
100await CreateSpellCheckCodeIssueAsync(context, token, IsGeneric(token), cancellationToken).ConfigureAwait(false);
142completionList, similarityChecker).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (4)
58await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false);
64await AddPropertyCodeActionsAsync(actions, semanticDocument, state, cancellationToken).ConfigureAwait(false);
68await AddLocalCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
69await AddParameterCodeActionsAsync(actions, document, state, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (13)
52await TrackVariableReferencesAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false);
59await AddItemsFromAssignmentAsync(document, node, operationCollector, cancellationToken).ConfigureAwait(false);
90await TrackVariableDefinitionsAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false);
91await TrackVariableReferencesAsync(symbol, operationCollector, cancellationToken).ConfigureAwait(false);
117await TrackVariableReferencesAsync(parameterSymbol, operationCollector, cancellationToken).ConfigureAwait(false);
122await TrackParameterSymbolAsync(parameterSymbol, operationCollector, cancellationToken).ConfigureAwait(false);
131await TrackMethodSymbolAsync(methodSymbol, operationCollector, cancellationToken).ConfigureAwait(false);
161await collector.VisitAsync(assignmentOperation, cancellationToken).ConfigureAwait(false);
171documents: null, FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false);
185documents: null, FindReferencesSearchOptions.Default, cancellationToken).ConfigureAwait(false);
226await collector.VisitAsync(operation, cancellationToken).ConfigureAwait(false);
239await TrackVariableReferencesAsync(outOrRefParam, collector, cancellationToken).ConfigureAwait(false);
316await collector.VisitAsync(initializer, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (8)
54await TrackConstructorAsync(location, cancellationToken).ConfigureAwait(false);
60await TrackMethodInvocationArgumentsAsync(location, cancellationToken).ConfigureAwait(false);
79await AddItemsFromAssignmentAsync(location.Document, node, _operationCollector, cancellationToken).ConfigureAwait(false);
90await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false);
118await _operationCollector.VisitAsync(argumentOperation, cancellationToken).ConfigureAwait(false);
136await _operationCollector.VisitAsync(expressionOperation, cancellationToken).ConfigureAwait(false);
164await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false);
199await _operationCollector.VisitAsync(operation, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Microsoft.CodeAnalysis.NetAnalyzers (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.Workspaces (180)
Classification\AbstractClassificationService.cs (3)
102document, textSpans, type, options, result, cancellationToken).ConfigureAwait(false);
151document, textSpans, options, getNodeClassifiers, getTokenClassifiers, result, cancellationToken).ConfigureAwait(false);
175document, textSpans, options, result, cancellationToken).ConfigureAwait(false);
Classification\ClassifierHelper.cs (4)
39.ConfigureAwait(false);
78await classificationService.AddSyntacticClassificationsAsync(document, spans, syntaxSpans, cancellationToken).ConfigureAwait(false);
82await classificationService.AddSemanticClassificationsAsync(document, spans, options, semanticSpans, cancellationToken).ConfigureAwait(false);
83await classificationService.AddEmbeddedLanguageClassificationsAsync(document, spans, options, semanticSpans, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (9)
72await SearchCurrentProjectAsync().ConfigureAwait(false);
73await SearchProjectReferencesAsync().ConfigureAwait(false);
74await SearchMetadataReferencesAsync().ConfigureAwait(false);
86project, query, criteria, buffer, cancellationToken).ConfigureAwait(false);
89await AddAllAsync(buffer, mapSymbol: false).ConfigureAwait(false);
104referencedProject, query, criteria, buffer, cancellationToken).ConfigureAwait(false);
108await AddAllAsync(buffer, mapSymbol: referencedProject.Language != project.Language).ConfigureAwait(false);
129query, criteria, buffer, cancellationToken).ConfigureAwait(false);
132await AddAllAsync(buffer, mapSymbol: false).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder.cs (9)
137await DescendInheritanceTreeInProjectAsync(project).ConfigureAwait(false);
155await AddDescendantMetadataTypesInProjectAsync(tempBuffer, project).ConfigureAwait(false);
175await AddDescendantSourceTypesInProjectAsync(tempBuffer, project).ConfigureAwait(false);
220predicate: static n => n.BaseType?.SpecialType == SpecialType.System_Object).ConfigureAwait(false);
224projectIndex.ValueTypes, tempBuffer, predicate: null).ConfigureAwait(false);
228projectIndex.Enums, tempBuffer, predicate: null).ConfigureAwait(false);
232projectIndex.Delegates, tempBuffer, predicate: null).ConfigureAwait(false);
236await AddSourceTypesThatDeriveFromNameAsync(tempBuffer, type.Name).ConfigureAwait(false);
321typesToSearchFor, project, compilation, peReference, tempBuffer).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
158project, documents, static (index, predefinedType) => index.ContainsPredefinedType(predefinedType), predefinedType, processResult, processResultData, cancellationToken).ConfigureAwait(false);
727await DetermineDocumentsToSearchAsync(typedSymbol, globalAliases, project, documents, processResult, processResultData, options, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (8)
67project, documents, typeName, processResult, processResultData, cancellationToken).ConfigureAwait(false);
74project, documents, globalAlias, processResult, processResultData, cancellationToken).ConfigureAwait(false);
79project, documents, containingType.SpecialType.ToPredefinedType(), processResult, processResultData, cancellationToken).ConfigureAwait(false);
82project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
87project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
90await FindDocumentsWithCollectionExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
112await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, typeName).ConfigureAwait(false);
115await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, simpleName).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (2)
50await FindDocumentsAsync(project, documents, StandardCallbacks<Document>.AddToHashSet, result, cancellationToken, underlyingNamedType.Name).ConfigureAwait(false);
51await FindDocumentsAsync(project, documents, underlyingNamedType.SpecialType.ToPredefinedType(), StandardCallbacks<Document>.AddToHashSet, result, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (6)
63await AddDocumentsToSearchAsync(symbol.Name, project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
67await AddDocumentsToSearchAsync(alias, project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
71project, documents, symbol.SpecialType.ToPredefinedType(), processResult, processResultData, cancellationToken).ConfigureAwait(false);
74project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
92project, documents, processResult, processResultData, cancellationToken, throughName).ConfigureAwait(false);
95await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, simpleName).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (4)
37await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false);
39await FindDocumentsWithPredicateAsync(project, documents, static index => index.ContainsGlobalKeyword, processResult, processResultData, cancellationToken).ConfigureAwait(false);
46project, documents, processResult, processResultData, cancellationToken, globalAlias).ConfigureAwait(false);
50await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (3)
32await FindDocumentsAsync(project, documents, op, processResult, processResultData, cancellationToken).ConfigureAwait(false);
33await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
48project, documents, static (index, op) => index.ContainsPredefinedOperator(op), op, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (8)
91await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, methodSymbol.Name).ConfigureAwait(false);
92await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
95await FindDocumentsWithForEachStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
98await FindDocumentsWithDeconstructionAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
101await FindDocumentsWithAwaitExpressionAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
104await FindDocumentsWithCollectionInitializersAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
107await FindDocumentsWithUsingStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
110await FindDocumentsWithCollectionExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (5)
117await FindDocumentsAsync(project, documents, processResult, processResultData, cancellationToken, symbol.Name).ConfigureAwait(false);
120await FindDocumentsWithForEachStatementsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
123await FindDocumentWithExplicitOrImplicitElementAccessExpressionsAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
126await FindDocumentWithIndexerMemberCrefAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
128await FindDocumentsWithGlobalSuppressMessageAttributeAsync(project, documents, processResult, processResultData, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (2)
58await AddDownSymbolsAsync(this.Engine, current, _allSymbols, workQueue, projects, cancellationToken).ConfigureAwait(false);
59await AddUpSymbolsAsync(this.Engine, current, _allSymbols, workQueue, projects, _includeImplementationsThroughDerivedTypes, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (7)
74cancellationToken).ConfigureAwait(false);
123tuple.project, tuple.allSymbols, onReferenceFound, cancellationToken).ConfigureAwait(false)).ConfigureAwait(false);
148await symbolSet.InheritanceCascadeAsync(currentProject, cancellationToken).ConfigureAwait(false);
226await AddGlobalAliasesAsync(project, allSymbols, symbolToGlobalAliases, cancellationToken).ConfigureAwait(false);
238_options, cancellationToken).ConfigureAwait(false);
254ProcessDocumentAsync(kvp.Key, kvp.Value, symbolToGlobalAliases, onReferenceFound, cancellationToken)).ConfigureAwait(false);
314}).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (8)
153await AddCascadedAndLinkedSymbolsToAsync(engine, currentSymbol, result, workQueue, cancellationToken).ConfigureAwait(false);
173engine, currentSymbol, upSymbols, workQueue, allProjects, includeImplementationsThroughDerivedTypes, cancellationToken).ConfigureAwait(false);
183await AddCascadedAndLinkedSymbolsToAsync(engine, symbol, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
248await AddCascadedAndLinkedSymbolsToAsync(engine, implementations, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
255await AddCascadedAndLinkedSymbolsToAsync(engine, overrides, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
285await AddCascadedAndLinkedSymbolsToAsync(engine, match, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
290await AddCascadedAndLinkedSymbolsToAsync(engine, overriddenMember, seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
293await AddCascadedAndLinkedSymbolsToAsync(engine, symbol.ExplicitInterfaceImplementations(), seenSymbols, workQueue, cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (5)
224_cancellationToken).ConfigureAwait(false);
235await DebugVerifyNoErrorsAsync(conflictResolution, documentsIdsToBeCheckedForConflict).ConfigureAwait(false);
296await changeDoc.VerifyNoErrorsAsync("Rename introduced errors in error-free code", _cancellationToken, ignoreErrorCodes).ConfigureAwait(false);
468projectId, renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations, _cancellationToken).ConfigureAwait(false);
708await AddDocumentsWithPotentialConflictsAsync(documentsFromAffectedProjects, documentIds, possibleNameConflicts).ConfigureAwait(false);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Workspace\Solution\ChecksumCollection.cs (2)
71await stateChecksums.FindAsync(assetPath, state, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
84await stateChecksums.FindAsync(assetPath, state, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
Workspace\Solution\StateChecksums.cs (8)
130compilationState.FrozenSourceGeneratedDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
175await solutionChecksums.FindAsync(solutionState, projectCone, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
181await solutionChecksums.FindAsync(solutionState, projectCone, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
298await projectStateChecksums.FindAsync(projectState, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
321await projectStateChecksums.FindAsync(projectState, assetPath, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
473await ChecksumCollection.FindAsync(assetPath, state.DocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
474await ChecksumCollection.FindAsync(assetPath, state.AdditionalDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
475await ChecksumCollection.FindAsync(assetPath, state.AnalyzerConfigDocumentStates, searchingChecksumsLeft, onAssetFound, arg, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Microsoft.Deployment.DotNet.Releases (7)
Microsoft.Diagnostics.NETCore.Client (33)
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (23)
135await Task.Delay(IsStreamConnectedTimeoutMs, token).ConfigureAwait(false);
471await ConnectAsyncInternal(clientSocket, clientTcpEndPoint, connectTokenSource.Token).ConfigureAwait(false);
503await Task.Delay(TcpClientRetryTimeoutMs, token).ConfigureAwait(false);
523await Task.Factory.FromAsync(beginConnect, clientSocket.EndConnect, this).ConfigureAwait(false);
652await namedPipe.ConnectAsync(IpcClientTimeoutMs, token).ConfigureAwait(false);
684await unixDomainSocket.ConnectAsync(new IpcUnixDomainSocketEndPoint(_ipcClientPath), token).ConfigureAwait(false);
701await Task.Delay(IpcClientRetryTimeoutMs, token).ConfigureAwait(false);
823await Task.WhenAll(netServerStreamTask, checkIpcStreamTask).ConfigureAwait(false);
860await Task.WhenAll(ipcServerStreamTask, checkTcpStreamTask).ConfigureAwait(false);
1006await Task.WhenAll(tcpClientStreamTask, checkIpcStreamTask).ConfigureAwait(false);
1140await Task.WhenAll(ipcClientStreamTask, checkTcpStreamTask).ConfigureAwait(false);
1164await IpcAdvertise.SerializeAsync(ipcClientStream, _tcpServerRouterFactory.RuntimeInstanceId, (ulong)_tcpServerRouterFactory.RuntimeProcessId, token).ConfigureAwait(false);
1259await UpdateRuntimeInfo(token).ConfigureAwait(false);
1285await Task.WhenAll(ipcClientStreamTask, checkTcpStreamTask).ConfigureAwait(false);
1309await IpcAdvertise.SerializeAsync(ipcClientStream, _runtimeInstanceId, _runtimeProcessId, token).ConfigureAwait(false);
1365await Task.WhenAll(readTask, checkTcpStreamTask).ConfigureAwait(false);
1390await tcpClientStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false);
1413await tcpClientStream.WriteAsync(buffer, 0, buffer.Length, token).ConfigureAwait(false);
1506await Task.WhenAll(runningTasks.ToArray()).ConfigureAwait(false);
1573await _frontendStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false);
1575await _frontendStream.FlushAsync().ConfigureAwait(false);
1616await _backendStream.WriteAsync(buffer, 0, bytesRead, token).ConfigureAwait(false);
1618await _backendStream.FlushAsync().ConfigureAwait(false);
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Cli.Telemetry (2)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (4)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Reporting (13)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (5)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.OpenAI (19)
OpenAIRealtimeClientSession.cs (18)
91await _sessionClient.ConfigureTranscriptionSessionAsync(rawTransOptions, cancellationToken).ConfigureAwait(false);
96await _sessionClient.ConfigureTranscriptionSessionAsync(transOpts, cancellationToken).ConfigureAwait(false);
101await _sessionClient.ConfigureConversationSessionAsync(convOpts, cancellationToken).ConfigureAwait(false);
123await UpdateSessionAsync(sessionUpdate.Options, cancellationToken).ConfigureAwait(false);
127await SendResponseCreateAsync(responseCreate, cancellationToken).ConfigureAwait(false);
131await SendConversationItemCreateAsync(itemCreate, cancellationToken).ConfigureAwait(false);
135await SendInputAudioAppendAsync(audioAppend, cancellationToken).ConfigureAwait(false);
142await _sessionClient.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false);
146await _sessionClient.CommitPendingAudioAsync(cancellationToken).ConfigureAwait(false);
152await SendRawCommandAsync(message, cancellationToken).ConfigureAwait(false);
294await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false);
298await _sessionClient!.StartResponseAsync(responseOptions, cancellationToken).ConfigureAwait(false);
328await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false);
332await _sessionClient!.AddItemAsync(sdkItem, cancellationToken).ConfigureAwait(false);
348await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false);
352await _sessionClient!.SendInputAudioAsync(audioData, cancellationToken).ConfigureAwait(false);
360await _sessionClient!.SendCommandAsync(sdkCmd, cancellationToken).ConfigureAwait(false);
379await _sessionClient!.SendCommandAsync(BinaryData.FromString(jsonString), null).ConfigureAwait(false);
Microsoft.Extensions.AI.Templates.Tests (2)
Microsoft.Extensions.AI.Tests (3)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.SqlServer (7)
Microsoft.Extensions.Caching.StackExchangeRedis (5)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.DataIngestion (7)
Microsoft.Extensions.DataIngestion.MarkItDown (2)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.DotNetDeltaApplier (5)
Microsoft.Extensions.Hosting (13)
Microsoft.Extensions.Hosting.Abstractions (5)
Microsoft.Extensions.Hosting.Testing (8)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Identity.Core (58)
UserManager.cs (51)
505await UpdateSecurityStampInternal(user).ConfigureAwait(false);
513await GetUserLockoutStore().SetLockoutEnabledAsync(user, true, CancellationToken).ConfigureAwait(false);
515await UpdateNormalizedUserNameAsync(user).ConfigureAwait(false);
516await UpdateNormalizedEmailAsync(user).ConfigureAwait(false);
701await Store.SetNormalizedUserNameAsync(user, normalizedName, CancellationToken).ConfigureAwait(false);
730await Store.SetUserNameAsync(user, userName, CancellationToken).ConfigureAwait(false);
731await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1001await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1098await loginStore.RemoveLoginAsync(user, loginProvider, providerKey, CancellationToken).ConfigureAwait(false);
1099await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1147await loginStore.AddLoginAsync(user, login, CancellationToken).ConfigureAwait(false);
1199await claimStore.AddClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1230await claimStore.ReplaceClaimAsync(user, claim, newClaim, CancellationToken).ConfigureAwait(false);
1273await claimStore.RemoveClaimsAsync(user, claims, CancellationToken).ConfigureAwait(false);
1334await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1377await userRoleStore.AddToRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1407await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1468await userRoleStore.RemoveFromRoleAsync(user, normalizedRole, CancellationToken).ConfigureAwait(false);
1534await store.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
1535await store.SetEmailConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1536await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1596await store.SetNormalizedEmailAsync(user, ProtectPersonalData(NormalizeEmail(email)!), CancellationToken).ConfigureAwait(false);
1648await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1718await store.SetEmailAsync(user, newEmail, CancellationToken).ConfigureAwait(false);
1719await store.SetEmailConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1720await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1755await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1756await store.SetPhoneNumberConfirmedAsync(user, false, CancellationToken).ConfigureAwait(false);
1757await UpdateSecurityStampInternal(user).ConfigureAwait(false);
1805await store.SetPhoneNumberAsync(user, phoneNumber, CancellationToken).ConfigureAwait(false);
1806await store.SetPhoneNumberConfirmedAsync(user, true, CancellationToken).ConfigureAwait(false);
1807await UpdateSecurityStampInternal(user).ConfigureAwait(false);
2073await store.SetTwoFactorEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2074await UpdateSecurityStampInternal(user).ConfigureAwait(false);
2124await store.SetLockoutEnabledAsync(user, enabled, CancellationToken).ConfigureAwait(false);
2198await store.SetLockoutEndDateAsync(user, lockoutEnd, CancellationToken).ConfigureAwait(false);
2226CancellationToken).ConfigureAwait(false);
2227await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2268await store.ResetAccessFailedCountAsync(user, CancellationToken).ConfigureAwait(false);
2357await store.SetTokenAsync(user, loginProvider, tokenName, tokenValue, CancellationToken).ConfigureAwait(false);
2385await store.RemoveTokenAsync(user, loginProvider, tokenName, CancellationToken).ConfigureAwait(false);
2421await store.SetAuthenticatorKeyAsync(user, GenerateNewAuthenticatorKey(), CancellationToken).ConfigureAwait(false);
2422await UpdateSecurityStampInternal(user).ConfigureAwait(false);
2460await store.ReplaceCodesAsync(user, newCodes.Distinct(), CancellationToken).ConfigureAwait(false);
2647await passkeyStore.AddOrUpdatePasskeyAsync(user, passkey, CancellationToken).ConfigureAwait(false);
2733await passkeyStore.RemovePasskeyAsync(user, credentialId, CancellationToken).ConfigureAwait(false);
2822await GetSecurityStore().SetSecurityStampAsync(user, NewSecurityStamp(), CancellationToken).ConfigureAwait(false);
2848await passwordStore.SetPasswordHashAsync(user, hash, CancellationToken).ConfigureAwait(false);
2849await UpdateSecurityStampInternal(user).ConfigureAwait(false);
3001await UpdateNormalizedUserNameAsync(user).ConfigureAwait(false);
3002await UpdateNormalizedEmailAsync(user).ConfigureAwait(false);
Microsoft.Extensions.Identity.Stores (3)
Microsoft.Extensions.Logging.AzureAppServices (4)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.ServiceDiscovery (11)
Microsoft.Extensions.ServiceDiscovery.Abstractions (4)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Extensions.VectorData.Abstractions (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (7)
Microsoft.Maui (2)
Microsoft.Maui.Controls (14)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Maps (1)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Samples (1)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.SamplesUtils (1)
Microsoft.ML.TestFrameworkCommon (2)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.NET.Build.Containers (79)
LocalDaemons\ContainerArchive.cs (22)
41await WriteDockerImageToStreamAsync(image, sourceReference, destinationReference, imageStream, cancellationToken).ConfigureAwait(false);
45await WriteOciImageToStreamAsync(image, sourceReference, destinationReference, imageStream, cancellationToken).ConfigureAwait(false);
65.ConfigureAwait(false);
68await WriteImageConfigAsync(writer, image, configTarballPath, cancellationToken).ConfigureAwait(false);
70.ConfigureAwait(false);
83await WriteOciImageToBlobsAsync(writer, image, sourceReference, cancellationToken).ConfigureAwait(false);
84await WriteIndexJsonForOciImageAsync(writer, image, destinationReference, cancellationToken).ConfigureAwait(false);
85await WriteOciLayoutAsync(writer, cancellationToken).ConfigureAwait(false);
101await WriteOciImageToBlobsAsync(writer, image, sourceReference, cancellationToken).ConfigureAwait(false);
105.ConfigureAwait(false);
106await WriteOciLayoutAsync(writer, cancellationToken).ConfigureAwait(false);
132await writer.WriteEntryAsync(localPath, layerTarballPath, cancellationToken).ConfigureAwait(false);
145await writer.WriteEntryAsync(configEntry, cancellationToken).ConfigureAwait(false);
179await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false);
194await writer.WriteEntryAsync(layoutEntry, cancellationToken).ConfigureAwait(false);
210await writer.WriteEntryAsync(manifestEntry, cancellationToken).ConfigureAwait(false);
241await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false);
255.ConfigureAwait(false);
256await WriteImageConfigAsync(writer, image, $"{BlobsPath}/{GetRequiredImageSha(image)}", cancellationToken).ConfigureAwait(false);
257await WriteManifestForOciImageAsync(writer, image, cancellationToken).ConfigureAwait(false);
282await writer.WriteEntryAsync(manifestListEntry, cancellationToken).ConfigureAwait(false);
301await writer.WriteEntryAsync(indexEntry, cancellationToken).ConfigureAwait(false);
Registry\Registry.cs (11)
455.ConfigureAwait(false);
472await Task.Delay(_retryDelayProvider(), cancellationToken).ConfigureAwait(false);
488await UploadBlobAsync(repository, digest, contents, cancellationToken).ConfigureAwait(false);
577await _registryAPI.Blob.Upload.CompleteAsync(finalChunkUri.UploadUri, digest, cancellationToken).ConfigureAwait(false);
592await _registryAPI.Manifest.PutAsync(destinationImageReference.Repository, tag, multiArchImage.ImageIndex, multiArchImage.ImageIndexMediaType, cancellationToken).ConfigureAwait(false);
638await destinationRegistry.PushLayerAsync(Layer.FromDescriptor(descriptor), destination.Repository, cancellationToken).ConfigureAwait(false);
652await Task.WhenAll(builtImage.LayerDescriptors.Select(descriptor => uploadLayerFunc(descriptor))).ConfigureAwait(false);
658await uploadLayerFunc(descriptor).ConfigureAwait(false);
667await UploadBlobAsync(destination.Repository, configDigest, stringStream, cancellationToken).ConfigureAwait(false);
681await _registryAPI.Manifest.PutAsync(destination.Repository, tag, builtImage.Manifest, builtImage.ManifestMediaType, cancellationToken).ConfigureAwait(false);
688await _registryAPI.Manifest.PutAsync(destination.Repository, builtImage.ManifestDigest, builtImage.Manifest, builtImage.ManifestMediaType, cancellationToken).ConfigureAwait(false);
Microsoft.NET.Sdk.Razor.Tasks (9)
Microsoft.TemplateEngine.Cli (15)
Microsoft.TemplateEngine.Edge (13)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CommunicationUtilities (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (34)
Microsoft.VisualBasic.Forms (2)
NuGet.Protocol (1)
Pipelines.AppHost (16)
Pipelines.Library (9)
Roslyn.Diagnostics.Analyzers (21)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (8)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false);
114await args.consumeItems(items, args.args, cancellationToken).ConfigureAwait(false);
238await args.produceItems(source, callback, args.args, cancellationToken).ConfigureAwait(false)),
299source, callback, args.args, cancellationToken).ConfigureAwait(false)),
344await Task.WhenAll(writeTask, readTask).ConfigureAwait(false);
367await produceItems(item => channel.Writer.TryWrite(item), args, cancellationToken).ConfigureAwait(false);
384await action(args, cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.CSharp.Analyzers (2)
rzc (11)
SimplePipelines.AppHost (6)
Stress.AppHost (1)
System.Data.Common (13)
System.Diagnostics.Process (8)
System.DirectoryServices.Protocols (1)
System.Formats.Tar (6)
System.IO.Compression (49)
System\IO\Compression\ZipArchive.Async.cs (15)
83await backingStream.CopyToAsync(stream, cancellationToken).ConfigureAwait(false);
95await zipArchive.ReadEndOfCentralDirectoryAsync(cancellationToken).ConfigureAwait(false);
99await zipArchive.EnsureCentralDirectoryReadAsync(cancellationToken).ConfigureAwait(false);
110await zipArchive.ReadEndOfCentralDirectoryAsync(cancellationToken).ConfigureAwait(false);
111await zipArchive.EnsureCentralDirectoryReadAsync(cancellationToken).ConfigureAwait(false);
115await entry.ThrowIfNotOpenableAsync(needToUncompress: false, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false);
166await entry.UnloadStreamsAsync().ConfigureAwait(false);
174await CloseStreamsAsync().ConfigureAwait(false);
208await ReadCentralDirectoryAsync(cancellationToken).ConfigureAwait(false);
246await lastEntry.ReadEncryptionSaltIfNeededAsync(cancellationToken).ConfigureAwait(false);
391await entry.LoadLocalHeaderExtraFieldIfNeededAsync(cancellationToken).ConfigureAwait(false);
394await entry.LoadCompressedBytesIfNeededAsync(cancellationToken).ConfigureAwait(false);
412await entry.WriteAndFinishLocalEntryAsync(forceWriteLocalEntry, cancellationToken).ConfigureAwait(false);
425await entry.WriteCentralDirectoryFileHeaderAsync(centralDirectoryEntryRequiresUpdate, cancellationToken).ConfigureAwait(false);
468await ZipEndOfCentralDirectoryBlock.WriteBlockAsync(_archiveStream, _entries.Count, startOfCentralDirectory, sizeOfCentralDirectory, _archiveComment, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (19)
271await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: false, cancellationToken).ConfigureAwait(false);
317await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false);
380await decompressor.CopyToAsync(_storedUncompressedData, cancellationToken).ConfigureAwait(false);
411await CloseStreamsAsync().ConfigureAwait(false);
412await WriteLocalFileHeaderAndDataIfNeededAsync(forceWrite, cancellationToken).ConfigureAwait(false);
413await UnloadStreamsAsync().ConfigureAwait(false);
439await CreateAesExtraField().WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
442await ZipGenericExtraField.WriteAllBlocksExcludingTagAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, WinZipAesExtraField.HeaderId, cancellationToken).ConfigureAwait(false);
447await ZipGenericExtraField.WriteAllBlocksAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
572await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false);
589await ThrowIfNotOpenableAsync(needToUncompress: true, needToLoadIntoMemory: true, cancellationToken).ConfigureAwait(false);
624await decompressed.CopyToAsync(_storedUncompressedData, cancellationToken).ConfigureAwait(false);
712await CreateAesExtraField().WriteBlockAsync(_archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
715await ZipGenericExtraField.WriteAllBlocksExcludingTagAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, WinZipAesExtraField.HeaderId, cancellationToken).ConfigureAwait(false);
719await ZipGenericExtraField.WriteAllBlocksAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
775await _storedUncompressedData.CopyToAsync(crcStream, cancellationToken).ConfigureAwait(false);
837await _storedUncompressedData.CopyToAsync(crcStream, cancellationToken).ConfigureAwait(false);
860await WriteCrcAndSizesInLocalHeaderAsync(usedZip64InLH, cancellationToken).ConfigureAwait(false);
874await _storedUncompressedData.CopyToAsync(entryWriter, cancellationToken).ConfigureAwait(false);
System.IO.Compression.Brotli (1)
System.IO.Compression.ZipFile (15)
System\IO\Compression\ZipFile.Create.Async.cs (4)
456await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password, options.EncryptionMethod, cancellationToken).ConfigureAwait(false);
483await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password, options.EncryptionMethod, cancellationToken).ConfigureAwait(false);
502await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken: cancellationToken).ConfigureAwait(false);
516await CreateZipArchiveFromDirectoryAsync(sourceDirectoryName, archive, compressionLevel, includeBaseDirectory, cancellationToken: cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFile.Extract.Async.cs (4)
204await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false);
276await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, password, cancellationToken).ConfigureAwait(false);
435await archive.ExtractToDirectoryAsync(destinationDirectoryName, overwriteFiles, cancellationToken).ConfigureAwait(false);
494await entry.ExtractRelativeToDirectoryAsync(destinationDirectoryName, overwriteFiles, password, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (4)
75await ExtractToFileCoreAsync(source, destinationFileName, overwrite, fileStreamOptions, password: default, usePassword: false, cancellationToken).ConfigureAwait(false);
93await ExtractToFileCoreAsync(source, destinationFileName, overwrite, fileStreamOptions, password, usePassword: true, cancellationToken).ConfigureAwait(false);
122await es.CopyToAsync(fs, cancellationToken).ConfigureAwait(false);
155await ExtractToFileAsync(source, fileDestinationPath, overwrite, password, cancellationToken).ConfigureAwait(false);
System.IO.Pipelines (3)
System.Memory.Data (1)
System.Net.Http (38)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (4)
System.Net.HttpListener (3)
System.Net.Mail (19)
System.Net.NameResolution (4)
System\Net\DnsResolverPal.Managed.cs (4)
705await SendExactAsync(socket, buffer.AsMemory(0, 2), timeoutCts.Token).ConfigureAwait(false);
706await SendExactAsync(socket, query, timeoutCts.Token).ConfigureAwait(false);
708await ReceiveExactAsync(socket, buffer.AsMemory(0, 2), timeoutCts.Token).ConfigureAwait(false);
717await ReceiveExactAsync(socket, buffer.AsMemory(0, responseLength), timeoutCts.Token).ConfigureAwait(false);
System.Net.Ping (1)
System.Net.Quic (3)
System.Net.Requests (3)
System.Net.Security (19)
System\Net\Security\NegotiateStream.cs (8)
742SendBlobAsync<TIOAdapter>(message: null, cancellationToken)).ConfigureAwait(false); // client should send the first blob
787await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message, exception, cancellationToken).ConfigureAwait(false);
811await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false);
848await SendAuthResetSignalAndThrowAsync<TIOAdapter>(message!, exception, cancellationToken).ConfigureAwait(false);
858await _framer!.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false);
861await ReceiveBlobAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false);
920await SendBlobAsync<TIOAdapter>(message, cancellationToken).ConfigureAwait(false);
930await _framer.WriteMessageAsync<TIOAdapter>(InnerStream, message, cancellationToken).ConfigureAwait(false);
System.Net.ServerSentEvents (1)
System.Net.Sockets (1)
System.Net.WebSockets (9)
System.Net.WebSockets.Client (7)
System.Private.CoreLib (83)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (9)
286await FlushAsync().ConfigureAwait(false);
702await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
713await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
722await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(false);
804await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
821await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
830await FlushAsyncInternal(flushStream: true, flushEncoder: false, cancellationToken).ConfigureAwait(false);
981await FlushAsyncInternal(flushStream, flushEncoder, cancellationToken).ConfigureAwait(false);
1025await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
System.Private.DataContractSerialization (29)
System\Xml\XmlBaseWriter.cs (14)
377await FlushBase64Async().ConfigureAwait(false);
419await _writer.WriteEndAttributeAsync().ConfigureAwait(false);
548await _writer.WriteStartElementAsync(prefix, localName).ConfigureAwait(false);
553await FlushBase64Async().ConfigureAwait(false);
554await AutoCompleteAsync(WriteState.Element).ConfigureAwait(false);
644await WriteEndAttributeAsync().ConfigureAwait(false);
650await _writer.WriteEndStartElementAsync(true).ConfigureAwait(false);
655await _writer.WriteEndElementAsync(element.Prefix, element.LocalName!).ConfigureAwait(false);
725await FlushElementAsync().ConfigureAwait(false);
786await EndStartElementAsync().ConfigureAwait(false);
1549await StartContentAsync().ConfigureAwait(false);
1550await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, buffer, offset, actualByteCount - _trailByteCount).ConfigureAwait(false);
1768await StartContentAsync().ConfigureAwait(false);
1769await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, _trailBytes, 0, 0).ConfigureAwait(false);
System.Private.Xml (407)
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (82)
40await RawTextAsync("<?xml version=\"").ConfigureAwait(false);
43await RawTextAsync("1.0").ConfigureAwait(false);
48await RawTextAsync("\" encoding=\"").ConfigureAwait(false);
49await RawTextAsync(_encoding.WebName).ConfigureAwait(false);
55await RawTextAsync("\" standalone=\"").ConfigureAwait(false);
56await RawTextAsync(standalone == XmlStandalone.Yes ? "yes" : "no").ConfigureAwait(false);
59await RawTextAsync("\"?>").ConfigureAwait(false);
79await FlushBufferAsync().ConfigureAwait(false);
90await _stream.FlushAsync().ConfigureAwait(false);
111await _writer.FlushAsync().ConfigureAwait(false);
139await RawTextAsync("<!DOCTYPE ").ConfigureAwait(false);
140await RawTextAsync(name).ConfigureAwait(false);
143await RawTextAsync(" PUBLIC \"").ConfigureAwait(false);
144await RawTextAsync(pubid).ConfigureAwait(false);
145await RawTextAsync("\" \"").ConfigureAwait(false);
148await RawTextAsync(sysid).ConfigureAwait(false);
154await RawTextAsync(" SYSTEM \"").ConfigureAwait(false);
155await RawTextAsync(sysid).ConfigureAwait(false);
166await RawTextAsync(subset).ConfigureAwait(false);
309await WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false);
310await WriteStringAsync(namespaceName).ConfigureAwait(false);
311await WriteEndNamespaceDeclarationAsync().ConfigureAwait(false);
328await RawTextAsync("xmlns=\"").ConfigureAwait(false);
332await RawTextAsync("xmlns:").ConfigureAwait(false);
333await RawTextAsync(prefix).ConfigureAwait(false);
386await WriteCDataSectionAsync(text).ConfigureAwait(false);
409await WriteCommentOrPiAsync(text, '-').ConfigureAwait(false);
427await RawTextAsync(name).ConfigureAwait(false);
432await WriteCommentOrPiAsync(text, '?').ConfigureAwait(false);
448await RawTextAsync(name).ConfigureAwait(false);
453await FlushBufferAsync().ConfigureAwait(false);
476await RawTextAsync(strVal).ConfigureAwait(false);
481await FlushBufferAsync().ConfigureAwait(false);
537await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false);
576await WriteRawWithCharCheckingAsync(buffer, index, count).ConfigureAwait(false);
590await WriteRawWithCharCheckingAsync(data).ConfigureAwait(false);
599await FlushBufferAsync().ConfigureAwait(false);
600await FlushEncoderAsync().ConfigureAwait(false);
604await _stream.FlushAsync().ConfigureAwait(false);
608await _writer.FlushAsync().ConfigureAwait(false);
645await EncodeCharsAsync(1, _bufPos, true).ConfigureAwait(false);
652await _writer!.WriteAsync(_bufChars.AsMemory(1, _bufPos - 1)).ConfigureAwait(false);
884await FlushBufferAsync().ConfigureAwait(false);
909await FlushBufferAsync().ConfigureAwait(false);
917await FlushBufferAsync().ConfigureAwait(false);
1097await RawTextAsync(_newLineChars).ConfigureAwait(false);
1103await FlushBufferAsync().ConfigureAwait(false);
1137await RawTextAsync(_newLineChars).ConfigureAwait(false);
1143await FlushBufferAsync().ConfigureAwait(false);
1154await RawTextAsync(_newLineChars).ConfigureAwait(false);
1160await FlushBufferAsync().ConfigureAwait(false);
1319await FlushBufferAsync().ConfigureAwait(false);
1328await FlushBufferAsync().ConfigureAwait(false);
1335await RawTextAsync(text2, text3, text4).ConfigureAwait(false);
1495await RawTextAsync(_newLineChars).ConfigureAwait(false);
1501await FlushBufferAsync().ConfigureAwait(false);
1519await RawTextAsync(_newLineChars).ConfigureAwait(false);
1525await FlushBufferAsync().ConfigureAwait(false);
1690await FlushBufferAsync().ConfigureAwait(false);
1706await RawTextAsync(_newLineChars).ConfigureAwait(false);
1712await FlushBufferAsync().ConfigureAwait(false);
1874await FlushBufferAsync().ConfigureAwait(false);
1890await RawTextAsync(_newLineChars).ConfigureAwait(false);
1896await FlushBufferAsync().ConfigureAwait(false);
1911await WriteIndentAsync().ConfigureAwait(false);
1913await base.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false);
1924await WriteIndentAsync().ConfigureAwait(false);
1929await base.WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false);
1942await WriteIndentAsync().ConfigureAwait(false);
1947await base.WriteEndElementAsync(prefix, localName, ns).ConfigureAwait(false);
1960await WriteIndentAsync().ConfigureAwait(false);
1965await base.WriteFullEndElementAsync(prefix, localName, ns).ConfigureAwait(false);
1975await WriteIndentAsync().ConfigureAwait(false);
1978await base.WriteStartAttributeAsync(prefix, localName, ns).ConfigureAwait(false);
1988await WriteIndentAsync().ConfigureAwait(false);
1991await base.WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false);
2006await WriteIndentAsync().ConfigureAwait(false);
2009await base.WriteCommentAsync(text).ConfigureAwait(false);
2017await WriteIndentAsync().ConfigureAwait(false);
2020await base.WriteProcessingInstructionAsync(target, text).ConfigureAwait(false);
2090await RawTextAsync(base._newLineChars).ConfigureAwait(false);
2093await RawTextAsync(_indentChars).ConfigureAwait(false);
System\Xml\Core\XmlTextReaderImplAsync.cs (39)
46await FinishPartialValueAsync().ConfigureAwait(false);
51await FinishOtherValueIteratorAsync().ConfigureAwait(false);
95await InitStreamInputAsync(_laterInitParam.inputbaseUri, _reportedBaseUri, stream, null, 0, enc).ConfigureAwait(false);
102await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false);
126await InitStreamInputAsync(_laterInitParam.inputbaseUri, _reportedBaseUri, _laterInitParam!.inputStream!, _laterInitParam.inputBytes, _laterInitParam.inputByteCount, enc).ConfigureAwait(false);
133await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false);
148await ProcessDtdFromParserContextAsync(_laterInitParam.inputContext).ConfigureAwait(false);
330await SkipPartialTextValueAsync().ConfigureAwait(false);
333await FinishReadValueChunkAsync().ConfigureAwait(false);
336await FinishReadContentAsBinaryAsync().ConfigureAwait(false);
339await FinishReadElementContentAsBinaryAsync().ConfigureAwait(false);
770await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false);
778await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false);
841await PushExternalEntityOrSubsetAsync(publicId, systemId, _ps.baseUri, null).ConfigureAwait(false);
1247await SwitchEncodingToUTF8Async().ConfigureAwait(false);
1252await SwitchEncodingAsync(encoding).ConfigureAwait(false);
1460await SwitchEncodingToUTF8Async().ConfigureAwait(false);
1636await ParseEntityReferenceAsync().ConfigureAwait(false);
1946await ParseElementAsync_SetElement(colonPos, pos).ConfigureAwait(false);
2057await ParseElementAsync_NoAttributes().ConfigureAwait(false);
2077await ParseEndElmentAsync_PrepareData().ConfigureAwait(false);
2078await ParseEndElementAsync_CheckNameAndParse().ConfigureAwait(false);
2166await task.ConfigureAwait(false);
2539await ParseAttributeValueSlowAsync(pos, quoteChar, attr).ConfigureAwait(false);
3570await FinishPartialValueAsync().ConfigureAwait(false);
3587await FinishPartialValueAsync().ConfigureAwait(false);
3650await SkipPartialTextValueAsync().ConfigureAwait(false);
3665await FinishReadContentAsBinaryAsync().ConfigureAwait(false);
3815await ParseDtdFromParserContextAsync().ConfigureAwait(false);
4178await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false);
4184await ParseCDataOrCommentAsync(XmlNodeType.Comment).ConfigureAwait(false);
4451await ParseDtdAsync().ConfigureAwait(false);
4462await SkipDtdAsync().ConfigureAwait(false);
4521await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false);
4530await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false);
4558await SkipPublicOrSystemIdLiteralAsync().ConfigureAwait(false);
4572await SkipUntilAsync(']', true).ConfigureAwait(false);
5187await InitStreamInputAsync(uri, stream, null).ConfigureAwait(false);
5207await PushExternalEntityOrSubsetAsync(entity.PublicId, entity.SystemId, entityBaseUri, entity.Name).ConfigureAwait(false);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (77)
39await RawTextAsync("<?xml version=\"").ConfigureAwait(false);
42await RawTextAsync("1.0").ConfigureAwait(false);
47await RawTextAsync("\" encoding=\"").ConfigureAwait(false);
48await RawTextAsync(_encoding.WebName).ConfigureAwait(false);
54await RawTextAsync("\" standalone=\"").ConfigureAwait(false);
55await RawTextAsync(standalone == XmlStandalone.Yes ? "yes" : "no").ConfigureAwait(false);
58await RawTextAsync("\"?>").ConfigureAwait(false);
78await FlushBufferAsync().ConfigureAwait(false);
89await _stream.FlushAsync().ConfigureAwait(false);
115await RawTextAsync("<!DOCTYPE ").ConfigureAwait(false);
116await RawTextAsync(name).ConfigureAwait(false);
119await RawTextAsync(" PUBLIC \"").ConfigureAwait(false);
120await RawTextAsync(pubid).ConfigureAwait(false);
121await RawTextAsync("\" \"").ConfigureAwait(false);
124await RawTextAsync(sysid).ConfigureAwait(false);
130await RawTextAsync(" SYSTEM \"").ConfigureAwait(false);
131await RawTextAsync(sysid).ConfigureAwait(false);
142await RawTextAsync(subset).ConfigureAwait(false);
275await WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false);
276await WriteStringAsync(namespaceName).ConfigureAwait(false);
277await WriteEndNamespaceDeclarationAsync().ConfigureAwait(false);
292await RawTextAsync("xmlns=\"").ConfigureAwait(false);
296await RawTextAsync("xmlns:").ConfigureAwait(false);
297await RawTextAsync(prefix).ConfigureAwait(false);
344await WriteCDataSectionAsync(text).ConfigureAwait(false);
365await WriteCommentOrPiAsync(text, '-').ConfigureAwait(false);
381await RawTextAsync(name).ConfigureAwait(false);
386await WriteCommentOrPiAsync(text, '?').ConfigureAwait(false);
400await RawTextAsync(name).ConfigureAwait(false);
405await FlushBufferAsync().ConfigureAwait(false);
426await RawTextAsync(strVal).ConfigureAwait(false);
431await FlushBufferAsync().ConfigureAwait(false);
481await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false);
516await WriteRawWithCharCheckingAsync(buffer, index, count).ConfigureAwait(false);
528await WriteRawWithCharCheckingAsync(data).ConfigureAwait(false);
537await FlushBufferAsync().ConfigureAwait(false);
541await _stream.FlushAsync().ConfigureAwait(false);
757await FlushBufferAsync().ConfigureAwait(false);
782await FlushBufferAsync().ConfigureAwait(false);
790await FlushBufferAsync().ConfigureAwait(false);
969await RawTextAsync(_newLineChars).ConfigureAwait(false);
975await FlushBufferAsync().ConfigureAwait(false);
1009await RawTextAsync(_newLineChars).ConfigureAwait(false);
1015await FlushBufferAsync().ConfigureAwait(false);
1026await RawTextAsync(_newLineChars).ConfigureAwait(false);
1032await FlushBufferAsync().ConfigureAwait(false);
1190await FlushBufferAsync().ConfigureAwait(false);
1199await FlushBufferAsync().ConfigureAwait(false);
1206await RawTextAsync(text2, text3, text4).ConfigureAwait(false);
1365await RawTextAsync(_newLineChars).ConfigureAwait(false);
1371await FlushBufferAsync().ConfigureAwait(false);
1389await RawTextAsync(_newLineChars).ConfigureAwait(false);
1395await FlushBufferAsync().ConfigureAwait(false);
1559await FlushBufferAsync().ConfigureAwait(false);
1575await RawTextAsync(_newLineChars).ConfigureAwait(false);
1581await FlushBufferAsync().ConfigureAwait(false);
1742await FlushBufferAsync().ConfigureAwait(false);
1758await RawTextAsync(_newLineChars).ConfigureAwait(false);
1764await FlushBufferAsync().ConfigureAwait(false);
1779await WriteIndentAsync().ConfigureAwait(false);
1781await base.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false);
1792await WriteIndentAsync().ConfigureAwait(false);
1797await base.WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false);
1810await WriteIndentAsync().ConfigureAwait(false);
1815await base.WriteEndElementAsync(prefix, localName, ns).ConfigureAwait(false);
1828await WriteIndentAsync().ConfigureAwait(false);
1833await base.WriteFullEndElementAsync(prefix, localName, ns).ConfigureAwait(false);
1843await WriteIndentAsync().ConfigureAwait(false);
1846await base.WriteStartAttributeAsync(prefix, localName, ns).ConfigureAwait(false);
1856await WriteIndentAsync().ConfigureAwait(false);
1859await base.WriteStartNamespaceDeclarationAsync(prefix).ConfigureAwait(false);
1874await WriteIndentAsync().ConfigureAwait(false);
1877await base.WriteCommentAsync(text).ConfigureAwait(false);
1885await WriteIndentAsync().ConfigureAwait(false);
1888await base.WriteProcessingInstructionAsync(target, text).ConfigureAwait(false);
1958await RawTextAsync(base._newLineChars).ConfigureAwait(false);
1961await RawTextAsync(_indentChars).ConfigureAwait(false);
System\Xml\Core\XmlWellFormedWriterAsync.cs (79)
38await WriteEndElementAsync().ConfigureAwait(false);
41await AdvanceStateAsync(Token.EndDocument).ConfigureAwait(false);
49await _writer.WriteEndDocumentAsync().ConfigureAwait(false);
72await AdvanceStateAsync(Token.Dtd).ConfigureAwait(false);
114await _writer.WriteDocTypeAsync(name, pubid, sysid, subset).ConfigureAwait(false);
141await task.ConfigureAwait(false);
167await task.ConfigureAwait(false);
168await nextTaskFun(arg).ConfigureAwait(false);
263await task.ConfigureAwait(false);
264await WriteStartElementAsync_NoAdvanceState(prefix, localName, ns).ConfigureAwait(false);
306await t.ConfigureAwait(false);
598await task.ConfigureAwait(false);
599await WriteStartAttributeAsync_NoAdvanceState(prefix, localName, namespaceName).ConfigureAwait(false);
660await _rawWriter.WriteStartNamespaceDeclarationAsync(string.Empty).ConfigureAwait(false);
661await _attrValueCache.ReplayAsync(_rawWriter).ConfigureAwait(false);
662await _rawWriter.WriteEndNamespaceDeclarationAsync().ConfigureAwait(false);
666await _rawWriter.WriteNamespaceDeclarationAsync(string.Empty, value).ConfigureAwait(false);
671await _writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false);
672await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false);
673await _writer.WriteEndAttributeAsync().ConfigureAwait(false);
697await _rawWriter.WriteStartNamespaceDeclarationAsync(_curDeclPrefix).ConfigureAwait(false);
698await _attrValueCache.ReplayAsync(_rawWriter).ConfigureAwait(false);
699await _rawWriter.WriteEndNamespaceDeclarationAsync().ConfigureAwait(false);
703await _rawWriter.WriteNamespaceDeclarationAsync(_curDeclPrefix, value).ConfigureAwait(false);
708await _writer.WriteStartAttributeAsync("xmlns", _curDeclPrefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false);
709await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false);
710await _writer.WriteEndAttributeAsync().ConfigureAwait(false);
731await _writer.WriteStartAttributeAsync("xml", "space", XmlReservedNs.NsXml).ConfigureAwait(false);
732await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false);
733await _writer.WriteEndAttributeAsync().ConfigureAwait(false);
738await _writer.WriteStartAttributeAsync("xml", "lang", XmlReservedNs.NsXml).ConfigureAwait(false);
739await _attrValueCache.ReplayAsync(_writer).ConfigureAwait(false);
740await _writer.WriteEndAttributeAsync().ConfigureAwait(false);
759await AdvanceStateAsync(Token.CData).ConfigureAwait(false);
760await _writer.WriteCDataAsync(text).ConfigureAwait(false);
775await AdvanceStateAsync(Token.Comment).ConfigureAwait(false);
776await _writer.WriteCommentAsync(text).ConfigureAwait(false);
805await AdvanceStateAsync(Token.PI).ConfigureAwait(false);
810await _rawWriter.WriteXmlDeclarationAsync(text).ConfigureAwait(false);
814await _writer.WriteProcessingInstructionAsync(name, text).ConfigureAwait(false);
819await AdvanceStateAsync(Token.PI).ConfigureAwait(false);
820await _writer.WriteProcessingInstructionAsync(name, text).ConfigureAwait(false);
838await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
845await _writer.WriteEntityRefAsync(name).ConfigureAwait(false);
864await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
871await _writer.WriteCharEntityAsync(ch).ConfigureAwait(false);
890await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
897await _writer.WriteSurrogateCharEntityAsync(lowChar, highChar).ConfigureAwait(false);
918await AdvanceStateAsync(Token.Whitespace).ConfigureAwait(false);
925await _writer.WriteWhitespaceAsync(ws).ConfigureAwait(false);
987await task.ConfigureAwait(false);
988await WriteStringAsync_NoAdvanceState(text).ConfigureAwait(false);
1006await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
1013await _writer.WriteCharsAsync(buffer, index, count).ConfigureAwait(false);
1032await AdvanceStateAsync(Token.RawData).ConfigureAwait(false);
1039await _writer.WriteRawAsync(buffer, index, count).ConfigureAwait(false);
1058await AdvanceStateAsync(Token.RawData).ConfigureAwait(false);
1065await _writer.WriteRawAsync(data).ConfigureAwait(false);
1106await task.ConfigureAwait(false);
1107await _writer.WriteBase64Async(buffer, index, count).ConfigureAwait(false);
1120await _writer.FlushAsync().ConfigureAwait(false);
1136await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
1157await WriteStringAsync(prefix).ConfigureAwait(false);
1158await WriteStringAsync(":").ConfigureAwait(false);
1160await WriteStringAsync(localName).ConfigureAwait(false);
1164await _rawWriter.WriteQualifiedNameAsync(prefix, localName, ns).ConfigureAwait(false);
1182await AdvanceStateAsync(Token.Text).ConfigureAwait(false);
1183await base.WriteBinHexAsync(buffer, index, count).ConfigureAwait(false);
1196await AdvanceStateAsync(Token.StartDocument).ConfigureAwait(false);
1212await _rawWriter.WriteXmlDeclarationAsync(standalone).ConfigureAwait(false);
1218await _writer.WriteStartDocumentAsync().ConfigureAwait(false);
1244await task.ConfigureAwait(false);
1263await task.ConfigureAwait(false);
1265await AdvanceStateAsync(token).ConfigureAwait(false);
1385await _nsStack[i].WriteDeclAsync(_writer, _rawWriter).ConfigureAwait(false);
1414await WriteEndElementAsync().ConfigureAwait(false);
1424await AdvanceStateAsync(Token.EndElement).ConfigureAwait(false);
1436await _rawWriter.WriteEndBase64Async().ConfigureAwait(false);
1439await _writer.FlushAsync().ConfigureAwait(false);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (15)
34await rawWriter.WriteNamespaceDeclarationAsync(prefix, namespaceUri).ConfigureAwait(false);
40await writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false);
44await writer.WriteStartAttributeAsync("xmlns", prefix, XmlReservedNs.NsXmlNs).ConfigureAwait(false);
46await writer.WriteStringAsync(namespaceUri).ConfigureAwait(false);
47await writer.WriteEndAttributeAsync().ConfigureAwait(false);
58await writer.WriteStringAsync(_singleStringValue).ConfigureAwait(false);
69await writer.WriteEntityRefAsync((string)item.data).ConfigureAwait(false);
72await writer.WriteCharEntityAsync((char)item.data).ConfigureAwait(false);
76await writer.WriteSurrogateCharEntityAsync(chars[0], chars[1]).ConfigureAwait(false);
79await writer.WriteWhitespaceAsync((string)item.data).ConfigureAwait(false);
82await writer.WriteStringAsync((string)item.data).ConfigureAwait(false);
86await writer.WriteCharsAsync(bufChunk.buffer, bufChunk.index, bufChunk.count).ConfigureAwait(false);
89await writer.WriteRawAsync((string)item.data).ConfigureAwait(false);
93await writer.WriteCharsAsync(bufChunk.buffer, bufChunk.index, bufChunk.count).ConfigureAwait(false);
96await writer.WriteStringAsync((string)item.data).ConfigureAwait(false);
System\Xml\Core\XmlWriterAsync.cs (53)
79await task.ConfigureAwait(false);
80await WriteStringAsync(value).ConfigureAwait(false);
81await WriteEndAttributeAsync().ConfigureAwait(false);
222await WriteStringAsync(prefix).ConfigureAwait(false);
223await WriteStringAsync(":").ConfigureAwait(false);
225await WriteStringAsync(localName).ConfigureAwait(false);
242await WriteAttributesAsync(reader, defattr).ConfigureAwait(false);
258await WriteStartAttributeAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false);
263await WriteEntityRefAsync(reader.Name).ConfigureAwait(false);
267await WriteStringAsync(reader.Value).ConfigureAwait(false);
270await WriteEndAttributeAsync().ConfigureAwait(false);
305await WriteStartElementAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false);
306await WriteAttributesAsync(reader, defattr).ConfigureAwait(false);
309await WriteEndElementAsync().ConfigureAwait(false);
319await WriteCharsAsync(_writeNodeBuffer, 0, read).ConfigureAwait(false);
324await WriteStringAsync(reader.Value).ConfigureAwait(false);
329await WriteWhitespaceAsync(reader.Value).ConfigureAwait(false);
332await WriteCDataAsync(reader.Value).ConfigureAwait(false);
335await WriteEntityRefAsync(reader.Name).ConfigureAwait(false);
339await WriteProcessingInstructionAsync(reader.Name, reader.Value).ConfigureAwait(false);
342await WriteDocTypeAsync(reader.Name, reader.GetAttribute("PUBLIC"), reader.GetAttribute("SYSTEM"), reader.Value).ConfigureAwait(false);
346await WriteCommentAsync(reader.Value).ConfigureAwait(false);
349await WriteFullEndElementAsync().ConfigureAwait(false);
367await WriteStartElementAsync(reader.Prefix, reader.LocalName, reader.NamespaceURI).ConfigureAwait(false);
368await WriteAttributesAsync(reader, defattr).ConfigureAwait(false);
371await WriteEndElementAsync().ConfigureAwait(false);
381await WriteCharsAsync(_writeNodeBuffer, 0, read).ConfigureAwait(false);
387await WriteStringAsync(await reader.GetValueAsync().ConfigureAwait(false)).ConfigureAwait(false);
392await WriteWhitespaceAsync(await reader.GetValueAsync().ConfigureAwait(false)).ConfigureAwait(false);
395await WriteCDataAsync(reader.Value).ConfigureAwait(false);
398await WriteEntityRefAsync(reader.Name).ConfigureAwait(false);
402await WriteProcessingInstructionAsync(reader.Name, reader.Value).ConfigureAwait(false);
405await WriteDocTypeAsync(reader.Name, reader.GetAttribute("PUBLIC"), reader.GetAttribute("SYSTEM"), reader.Value).ConfigureAwait(false);
409await WriteCommentAsync(reader.Value).ConfigureAwait(false);
412await WriteFullEndElementAsync().ConfigureAwait(false);
438await WriteStartElementAsync(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI).ConfigureAwait(false);
448await WriteStartAttributeAsync(navigator.Prefix, navigator.LocalName, navigator.NamespaceURI).ConfigureAwait(false);
450await WriteStringAsync(navigator.Value).ConfigureAwait(false);
451await WriteEndAttributeAsync().ConfigureAwait(false);
460await WriteLocalNamespacesAsync(navigator).ConfigureAwait(false);
469await WriteStringAsync(navigator.Value).ConfigureAwait(false);
473await WriteWhitespaceAsync(navigator.Value).ConfigureAwait(false);
479await WriteCommentAsync(navigator.Value).ConfigureAwait(false);
482await WriteProcessingInstructionAsync(navigator.LocalName, navigator.Value).ConfigureAwait(false);
506await WriteEndElementAsync().ConfigureAwait(false);
510await WriteFullEndElementAsync().ConfigureAwait(false);
536await WriteFullEndElementAsync().ConfigureAwait(false);
547await WriteStartElementAsync(prefix, localName, ns).ConfigureAwait(false);
550await WriteStringAsync(value).ConfigureAwait(false);
552await WriteEndElementAsync().ConfigureAwait(false);
564await WriteLocalNamespacesAsync(nsNav).ConfigureAwait(false);
569await WriteAttributeStringAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false);
573await WriteAttributeStringAsync("xmlns", prefix, XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false);
System.Private.Xml.Linq (29)
System.Security.Cryptography (6)
System.Security.Cryptography.Cose (6)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (3)
408await WriteSignatureAsync(writer, signer, buffer, buffer.AsMemory(0, protectedMapBytesWritten), associatedData, content, cancellationToken).ConfigureAwait(false);
487await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature, bodyProtected, buffer.AsMemory(start, signProtectedBytesWritten), associatedData, contentStream, cancellationToken).ConfigureAwait(false);
861await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature, _protectedHeaderAsBstr, encodedSignProtected, associatedData, content, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
346await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1, buffer.AsMemory(0, protectedMapBytesWritten), ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
940await AppendToBeSignedAsync(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlyMemory<byte>.Empty, associatedData, content, cancellationToken).ConfigureAwait(false);
System.ServiceModel.Primitives (11)
System\ServiceModel\Channels\BufferedWriteStream.cs (10)
188await _sem.WaitAsync().ConfigureAwait(false);
193await FlushWriteAsync(cancellationToken).ConfigureAwait(false);
199await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
225await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
227await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
468await semaphoreLockTask.ConfigureAwait(false);
496await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
519await _stream.WriteAsync(_buffer, 0, totalUserBytes, cancellationToken).ConfigureAwait(false);
524await _stream.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
529await _stream.WriteAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
System.Text.Json (4)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (4)
System.Windows.Forms (4)
TestingAppHost1.AppHost (1)
vbc (12)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);
VBCSCompiler (15)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (7)
128await ReadAllAsync(inStream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
187cancellationToken).ConfigureAwait(false);
190await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
305cancellationToken).ConfigureAwait(false);
308await memoryStream.CopyToAsync(outStream, bufferSize: length, cancellationToken: cancellationToken).ConfigureAwait(false);
324await ReadAllAsync(stream, lengthBuffer, 4, cancellationToken).ConfigureAwait(false);
332cancellationToken).ConfigureAwait(false);