9 instantiations of DeploymentStateSection
Aspire.Hosting (1)
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
160
var section = new
DeploymentStateSection
(sectionName, data, metadata.Version);
Aspire.Hosting.Azure.Tests (3)
AzureBicepProvisionerTests.cs (1)
229
return Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
AzureDeployerTests.cs (1)
1287
=> Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
ProvisioningTestHelpers.cs (1)
619
return Task.FromResult(new
DeploymentStateSection
(sectionName, sectionData, 0));
Aspire.Hosting.Tests (5)
Orchestrator\ApplicationOrchestratorTests.cs (1)
512
return Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
Orchestrator\ParameterProcessorTests.cs (2)
1163
return Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
1588
return Task.FromResult(new
DeploymentStateSection
(sectionName, sectionData, 0));
Publishing\DeploymentStateManagerTests.cs (2)
65
oldSection = new
DeploymentStateSection
(section1.SectionName, section1.Data, oldVersion);
304
var oldSection = new
DeploymentStateSection
(section1.SectionName, section1.Data, oldVersion);
75 references to DeploymentStateSection
Aspire.Hosting (13)
Orchestrator\ParameterProcessor.cs (4)
267
var
parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
333
var
parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
439
var
slot = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
574
var
slot = await deploymentStateManager.AcquireSectionAsync(parameter.ConfigurationKey, cancellationToken).ConfigureAwait(false);
Pipelines\DeploymentStateSection.cs (1)
13
/// Initializes a new instance of the <see cref="
DeploymentStateSection
"/> class.
Pipelines\IDeploymentStateManager.cs (3)
26
Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default);
35
Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default);
44
Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default);
Pipelines\Internal\DeploymentStateManagerBase.cs (5)
136
public async Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
160
var
section = new DeploymentStateSection(sectionName, data, metadata.Version);
203
public async Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
223
public async Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
242
private async Task EnsureStateAndSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken)
Aspire.Hosting.Azure (2)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
102
var
azureStateSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (1)
239
var
stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (11)
AzureBicepProvisionerTests.cs (3)
227
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
232
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
237
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
AzureDeployerTests.cs (3)
1286
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1289
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default) => Task.CompletedTask;
1291
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 (3)
614
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
622
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
627
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (49)
Orchestrator\ApplicationOrchestratorTests.cs (3)
510
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
515
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
520
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (7)
1161
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1166
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1171
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1466
var
section = await capturingStateManager.AcquireSectionAsync($"Parameters:{parameter.Name}").DefaultTimeout();
1581
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1591
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1605
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
Publishing\DeploymentStateManagerTests.cs (39)
26
var
section = await stateManager.AcquireSectionAsync("Parameters");
40
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
46
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
58
DeploymentStateSection
oldSection;
59
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
69
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
87
var
parametersSection = await stateManager.AcquireSectionAsync("Parameters");
88
var
azureSection = await stateManager.AcquireSectionAsync("Azure");
97
var
parametersCheck = await stateManager.AcquireSectionAsync("Parameters");
98
var
azureCheck = await stateManager.AcquireSectionAsync("Azure");
118
var
section = await stateManager.AcquireSectionAsync($"Section{sectionIndex}");
130
var
section = await verifyManager.AcquireSectionAsync($"Section{i}");
140
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
146
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
147
var
section3 = await stateManager.AcquireSectionAsync("Azure");
161
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
168
var
section2 = await stateManager2.AcquireSectionAsync("Parameters");
181
var
section3 = await stateManager3.AcquireSectionAsync("Parameters");
198
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
216
var
parametersSection = await stateManager.AcquireSectionAsync("Parameters");
227
var
section = await stateManager.AcquireSectionAsync("TestParent:TestChild:TestGrandchild");
232
var
retrievedSection = await stateManager.AcquireSectionAsync("TestParent:TestChild:TestGrandchild");
244
var
section = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
250
var
verifySection = await verifyManager.AcquireSectionAsync("Parent:Child:Grandchild");
260
var
section1 = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
261
var
section2 = await stateManager.AcquireSectionAsync("Root:Branch2:Leaf");
269
var
verify1 = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
270
var
verify2 = await stateManager.AcquireSectionAsync("Root:Branch2:Leaf");
281
var
section = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
287
var
verify = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
298
var
section1 = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
304
var
oldSection = new DeploymentStateSection(section1.SectionName, section1.Data, oldVersion);
307
var
section2 = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
323
var
section = await stateManager.AcquireSectionAsync("Nonexistent:Path:Here");
337
var
topLevel = await stateManager.AcquireSectionAsync("TopLevel");
338
var
nested = await stateManager.AcquireSectionAsync("Parent:Child");
346
var
verifyTop = await stateManager.AcquireSectionAsync("TopLevel");
347
var
verifyNested = await stateManager.AcquireSectionAsync("Parent:Child");
359
var
section = await stateManager.AcquireSectionAsync("PermTest");