7 instantiations of DeploymentStateSection
Aspire.Hosting (1)
Publishing\Internal\DeploymentStateManagerBase.cs (1)
230return new DeploymentStateSection(sectionName, sectionData, metadata.Version);
Aspire.Hosting.Azure.Tests (3)
AzureBicepProvisionerTests.cs (1)
225return Task.FromResult(new DeploymentStateSection(sectionName, [], 0));
AzureDeployerTests.cs (1)
1004=> Task.FromResult(new DeploymentStateSection(sectionName, [], 0));
ProvisioningTestHelpers.cs (1)
606return Task.FromResult(new DeploymentStateSection(sectionName, sectionData, 0));
Aspire.Hosting.Tests (3)
Orchestrator\ApplicationOrchestratorTests.cs (1)
495return Task.FromResult(new DeploymentStateSection(sectionName, [], 0));
Orchestrator\ParameterProcessorTests.cs (1)
793return Task.FromResult(new DeploymentStateSection(sectionName, [], 0));
Publishing\DeploymentStateManagerTests.cs (1)
63oldSection = new DeploymentStateSection(section1.SectionName, section1.Data, oldVersion);
41 references to DeploymentStateSection
Aspire.Hosting (7)
Orchestrator\ParameterProcessor.cs (2)
232DeploymentStateSection? parametersStateSection = null; 382var parametersSection = await deploymentStateManager.AcquireSectionAsync("Parameters", cancellationToken).ConfigureAwait(false);
Publishing\DeploymentStateSection.cs (1)
12/// Initializes a new instance of the <see cref="DeploymentStateSection"/> class.
Publishing\IDeploymentStateManager.cs (2)
26Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default); 35Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default);
Publishing\Internal\DeploymentStateManagerBase.cs (2)
216public async Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 239public async Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure (2)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
102var azureStateSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (1)
227var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (8)
AzureBicepProvisionerTests.cs (2)
223public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 228public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
AzureDeployerTests.cs (2)
1003public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 1006public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default) => Task.CompletedTask;
ProvisioningContextTests.cs (2)
202var azureSection = await manager.AcquireSectionAsync("Azure"); 206var loadedSection = await manager.AcquireSectionAsync("Azure");
ProvisioningTestHelpers.cs (2)
601public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 609public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (24)
Orchestrator\ApplicationOrchestratorTests.cs (2)
493public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 498public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (2)
791public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default) 796public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
Publishing\DeploymentStateManagerTests.cs (20)
24var section = await stateManager.AcquireSectionAsync("Parameters"); 38var section1 = await stateManager.AcquireSectionAsync("Parameters"); 44var section2 = await stateManager.AcquireSectionAsync("Parameters"); 56DeploymentStateSection oldSection; 57var section1 = await stateManager.AcquireSectionAsync("Parameters"); 67var section2 = await stateManager.AcquireSectionAsync("Parameters"); 85var parametersSection = await stateManager.AcquireSectionAsync("Parameters"); 86var azureSection = await stateManager.AcquireSectionAsync("Azure"); 95var parametersCheck = await stateManager.AcquireSectionAsync("Parameters"); 96var azureCheck = await stateManager.AcquireSectionAsync("Azure"); 116var section = await stateManager.AcquireSectionAsync($"Section{sectionIndex}"); 128var section = await verifyManager.AcquireSectionAsync($"Section{i}"); 138var section1 = await stateManager.AcquireSectionAsync("Parameters"); 144var section2 = await stateManager.AcquireSectionAsync("Parameters"); 145var section3 = await stateManager.AcquireSectionAsync("Azure"); 159var section1 = await stateManager.AcquireSectionAsync("Parameters"); 166var section2 = await stateManager2.AcquireSectionAsync("Parameters"); 179var section3 = await stateManager3.AcquireSectionAsync("Parameters"); 196var section2 = await stateManager.AcquireSectionAsync("Parameters"); 214var parametersSection = await stateManager.AcquireSectionAsync("Parameters");