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)
1945public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureDeployerTests.cs (1)
1590public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureEnvironmentResourceExtensionsTests.cs (1)
5383public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
AzureSandboxesTests.cs (1)
3627public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) => throw new NotSupportedException();
ProvisioningTestHelpers.cs (1)
1038public 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)
1213public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (2)
1302public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 1659public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
75 references to AcquireSectionAsync
Aspire.Hosting (9)
Orchestrator\ParameterProcessor.cs (7)
251var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, context.CancellationToken).ConfigureAwait(false); 291var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, context.CancellationToken).ConfigureAwait(false); 346var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 376var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 453var parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 518var slot = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false); 680var 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 (25)
AzureEnvironmentResource.cs (1)
226var azureStateSection = await deploymentStateManager.AcquireSectionAsync("Azure", context.CancellationToken).ConfigureAwait(false);
AzureProvisioningController.cs (14)
1210var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 1853var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 2506var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 2741var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false); 2760var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false); 2773var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false); 2799var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false); 2836var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 2920var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3363var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 3389var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3508var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3578var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 3810var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}").ConfigureAwait(false);
Provisioning\Internal\BaseProvisioningContextProvider.cs (2)
113var azureStateSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false); 205var azureStateSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
225var azureSection = await _deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (7)
50var stateSection = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false); 172var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 617var canceledStateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, CancellationToken.None).ConfigureAwait(false); 674stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, statePersistenceCancellationToken).ConfigureAwait(false); 792stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, statePersistenceCancellationToken).ConfigureAwait(false); 850var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false); 1472var 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 (26)
AzureBicepProvisionerTests.cs (16)
833var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 867var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 903var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 911var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 954var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None); 962var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 996var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1017section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1030var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1050section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1079var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1334var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1367var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1399var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1492var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None); 1845var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
AzureEnvironmentResourceExtensionsTests.cs (3)
5562var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 5574var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken); 5707var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
AzureSandboxesTests.cs (4)
1152var azureState = await stateManager.AcquireSectionAsync("Azure", TestContext.Current.CancellationToken); 2800var state = await stateManager.AcquireSectionAsync( 2933var state = await stateManager.AcquireSectionAsync( 3219var state = await stateManager.AcquireSectionAsync(
ProvisioningContextProviderTests.cs (1)
133var 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); 488var 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)