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)
2015public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureDeployerTests.cs (1)
1779public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureEnvironmentResourceExtensionsTests.cs (1)
5729public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureSandboxesTests.cs (1)
3676public 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)
1719public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (2)
1920public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 2738public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
84 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); 596var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 680var slot = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 964var slot = await deploymentStateManager.AcquireSectionAsync(parameter.ConfigurationKey, cancellationToken).ConfigureAwait(false); 973var 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)
248var 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)
348.AcquireSectionAsync($"Azure:Deployments:{Name}", context.CancellationToken) 696var azureState = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
AzureKubernetesEnvironmentResource.cs (3)
106.AcquireSectionAsync($"Azure:Deployments:{Name}") 175.AcquireSectionAsync($"Helm:{environment.Name}") 191.AcquireSectionAsync($"HelmChart:{environment.Name}:{chart.Name}")
Aspire.Hosting.Azure.Sandboxes (4)
AzureSandboxContainerDeployment.cs (3)
256var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 1318var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 1412var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, context.CancellationToken).ConfigureAwait(false);
AzureSandboxEndpointPropertyValueProvider.cs (1)
65.AcquireSectionAsync(AzureSandboxContainerDeployment.GetStateSectionName(_resource), cancellationToken)
Aspire.Hosting.Azure.Tests (33)
AzureBicepProvisionerTests.cs (18)
39var cached = await deploymentState.AcquireSectionAsync("Azure:Deployments:registration"); 50var azureState = await deploymentState.AcquireSectionAsync("Azure"); 903var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 937var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 973var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 981var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1024var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 1032var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1066var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1087section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1100var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1120section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1149var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1404var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1437var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1469var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1562var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1915var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
AzureEnvironmentResourceExtensionsTests.cs (3)
5908var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 5921var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 6059var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
AzureSandboxesTests.cs (5)
46var state = await manager.AcquireSectionAsync(AzureSandboxContainerDeployment.GetStateSectionName(target), default); 1185var azureState = await stateManager.AcquireSectionAsync("Azure", TestContext.Current.CancellationToken); 2849var state = await stateManager.AcquireSectionAsync( 2982var state = await stateManager.AcquireSectionAsync( 3268var state = await stateManager.AcquireSectionAsync(
BicepUtilitiesTests.cs (2)
189var cached = await deploymentState.AcquireSectionAsync("Azure:Deployments:registration"); 195var 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)
148var stateSection = await deploymentStateManager.AcquireSectionAsync($"DockerCompose:{Name}", ctx.CancellationToken).ConfigureAwait(false); 456var 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)