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