13 implementations of AcquireSectionAsync
Aspire.Hosting (1)
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
170public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) =>
Aspire.Hosting.Azure.Kubernetes.Tests (1)
tests\Shared\InMemoryDeploymentStateManager.cs (1)
25public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (6)
AzureBicepProvisionerTests.cs (1)
2046public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureDeployerTests.cs (1)
1779public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureEnvironmentResourceExtensionsTests.cs (1)
5704public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureSandboxesTests.cs (1)
3646public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) => throw new NotSupportedException();
ProvisioningTestHelpers.cs (1)
1052public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
tests\Shared\InMemoryDeploymentStateManager.cs (1)
25public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker.Tests (1)
tests\Shared\InMemoryDeploymentStateManager.cs (1)
25public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\InMemoryDeploymentStateManager.cs (1)
25public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (3)
Orchestrator\ApplicationOrchestratorTests.cs (1)
1215public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (2)
1740public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 2558public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
83 references to AcquireSectionAsync
Aspire.Hosting (10)
Orchestrator\ParameterProcessor.cs (8)
361var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, context.CancellationToken).ConfigureAwait(false); 401var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, context.CancellationToken).ConfigureAwait(false); 440var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 490var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 566var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 650var slot = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 928var slot = await deploymentStateManager.AcquireSectionAsync(parameter.ConfigurationKey, cancellationToken).ConfigureAwait(false); 937var slot = await deploymentStateManager.AcquireSectionAsync(parameter.ConfigurationKey, cancellationToken).ConfigureAwait(false);
Pipelines\IDeploymentStateManager.cs (2)
30/// for compatibility with state managers whose <see cref="AcquireSectionAsync"/> already reads only current state. 36=> AcquireSectionAsync(sectionName, cancellationToken);
Aspire.Hosting.Azure (26)
AzureEnvironmentResource.cs (1)
245var azureStateSection = await deploymentStateManager.AcquireSectionAsync("Azure", context.CancellationToken).ConfigureAwait(false);
AzureProvisioningController.cs (15)
1258var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 1925var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false); 1950var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 2627var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 2870var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false); 2889var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false); 2902var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false); 2928var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false); 2965var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 3049var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3492var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 3518var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3637var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3712var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3944var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}").ConfigureAwait(false);
Provisioning\Internal\BaseProvisioningContextProvider.cs (2)
122var azureStateSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 214var azureStateSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
233var azureSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (7)
51var stateSection = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 173var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 623var canceledStateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, CancellationToken.None).ConfigureAwait(false); 680stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, statePersistenceCancellationToken).ConfigureAwait(false); 798stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, statePersistenceCancellationToken).ConfigureAwait(false); 856var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 1479var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Kubernetes (5)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
363.AcquireSectionAsync($"Azure:Deployments:{Name}", context.CancellationToken) 774var azureState = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
AzureKubernetesEnvironmentResource.cs (3)
99.AcquireSectionAsync($"Azure:Deployments:{Name}") 168.AcquireSectionAsync($"Helm:{environment.Name}") 184.AcquireSectionAsync($"HelmChart:{environment.Name}:{chart.Name}")
Aspire.Hosting.Azure.Sandboxes (4)
AzureSandboxContainerDeployment.cs (3)
257var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 1319var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 1413var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, context.CancellationToken).ConfigureAwait(false);
AzureSandboxEndpointPropertyValueProvider.cs (1)
64.AcquireSectionAsync(AzureSandboxContainerDeployment.GetStateSectionName(_resource), cancellationToken)
Aspire.Hosting.Azure.Tests (32)
AzureBicepProvisionerTests.cs (18)
40var cached = await deploymentState.AcquireSectionAsync("Azure:Deployments:registration"); 51var azureState = await deploymentState.AcquireSectionAsync("Azure"); 934var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 968var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1004var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 1012var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1055var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 1063var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1097var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1118section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1131var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1151section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1180var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1435var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1468var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1500var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1593var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1946var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
AzureEnvironmentResourceExtensionsTests.cs (3)
5883var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 5896var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 6034var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
AzureSandboxesTests.cs (4)
1155var azureState = await stateManager.AcquireSectionAsync("Azure", TestContext.Current.CancellationToken); 2819var state = await stateManager.AcquireSectionAsync( 2952var state = await stateManager.AcquireSectionAsync( 3238var state = await stateManager.AcquireSectionAsync(
BicepUtilitiesTests.cs (2)
57var cached = await deploymentState.AcquireSectionAsync("Azure:Deployments:registration"); 63var azureState = await deploymentState.AcquireSectionAsync("Azure");
ProvisioningContextProviderTests.cs (3)
51var saved = await deploymentState.AcquireSectionAsync("Azure", cts.Token); 175var saved = await deploymentState.AcquireSectionAsync("Azure", cts.Token); 327var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None);
ProvisioningContextTests.cs (2)
202var azureSection = await manager.AcquireSectionAsync("Azure"); 206var loadedSection = await manager.AcquireSectionAsync("Azure");
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
144var stateSection = await deploymentStateManager.AcquireSectionAsync($"DockerCompose:{Name}", ctx.CancellationToken).ConfigureAwait(false); 452var stateSection = await deploymentStateManager.AcquireSectionAsync($"DockerCompose:{Name}", context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (4)
Deployment\HelmDeploymentEngine.cs (2)
200var stateSection = await deploymentStateManager.AcquireSectionAsync($"Helm:{environment.Name}", ctx.CancellationToken).ConfigureAwait(false); 487var stateSection = await deploymentStateManager.AcquireSectionAsync($"Helm:{environment.Name}", context.CancellationToken).ConfigureAwait(false);
KubernetesHelmChartExtensions.cs (2)
368.AcquireSectionAsync(GetStateSectionName(environment, chart), context.CancellationToken) 400.AcquireSectionAsync(GetStateSectionName(environment, chart), context.CancellationToken)