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)
1237
=> 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)
511
return Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
Orchestrator\ParameterProcessorTests.cs (2)
1162
return Task.FromResult(new
DeploymentStateSection
(sectionName, [], 0));
1605
return Task.FromResult(new
DeploymentStateSection
(sectionName, sectionData, 0));
Publishing\DeploymentStateManagerTests.cs (2)
64
oldSection = new
DeploymentStateSection
(section1.SectionName, section1.Data, oldVersion);
303
var oldSection = new
DeploymentStateSection
(section1.SectionName, section1.Data, oldVersion);
74 references to DeploymentStateSection
Aspire.Hosting (13)
Orchestrator\ParameterProcessor.cs (4)
298
var
parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
364
var
parameterSection = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
470
var
slot = await deploymentStateManager.AcquireSectionAsync(parameterResource.ConfigurationKey, cancellationToken).ConfigureAwait(false);
605
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)
1236
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1239
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default) => Task.CompletedTask;
1241
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 (48)
Orchestrator\ApplicationOrchestratorTests.cs (3)
509
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
514
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
519
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessorTests.cs (7)
1160
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1165
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1170
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1483
var
section = await capturingStateManager.AcquireSectionAsync($"Parameters:{parameter.Name}").DefaultTimeout();
1598
public Task<
DeploymentStateSection
> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
1608
public Task SaveSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
1622
public Task DeleteSectionAsync(
DeploymentStateSection
section, CancellationToken cancellationToken = default)
Publishing\DeploymentStateManagerTests.cs (38)
25
var
section = await stateManager.AcquireSectionAsync("Parameters");
39
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
45
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
57
DeploymentStateSection
oldSection;
58
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
68
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
86
var
parametersSection = await stateManager.AcquireSectionAsync("Parameters");
87
var
azureSection = await stateManager.AcquireSectionAsync("Azure");
96
var
parametersCheck = await stateManager.AcquireSectionAsync("Parameters");
97
var
azureCheck = await stateManager.AcquireSectionAsync("Azure");
117
var
section = await stateManager.AcquireSectionAsync($"Section{sectionIndex}");
129
var
section = await verifyManager.AcquireSectionAsync($"Section{i}");
139
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
145
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
146
var
section3 = await stateManager.AcquireSectionAsync("Azure");
160
var
section1 = await stateManager.AcquireSectionAsync("Parameters");
167
var
section2 = await stateManager2.AcquireSectionAsync("Parameters");
180
var
section3 = await stateManager3.AcquireSectionAsync("Parameters");
197
var
section2 = await stateManager.AcquireSectionAsync("Parameters");
215
var
parametersSection = await stateManager.AcquireSectionAsync("Parameters");
226
var
section = await stateManager.AcquireSectionAsync("TestParent:TestChild:TestGrandchild");
231
var
retrievedSection = await stateManager.AcquireSectionAsync("TestParent:TestChild:TestGrandchild");
243
var
section = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
249
var
verifySection = await verifyManager.AcquireSectionAsync("Parent:Child:Grandchild");
259
var
section1 = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
260
var
section2 = await stateManager.AcquireSectionAsync("Root:Branch2:Leaf");
268
var
verify1 = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
269
var
verify2 = await stateManager.AcquireSectionAsync("Root:Branch2:Leaf");
280
var
section = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
286
var
verify = await stateManager.AcquireSectionAsync("Root:Branch1:Leaf");
297
var
section1 = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
303
var
oldSection = new DeploymentStateSection(section1.SectionName, section1.Data, oldVersion);
306
var
section2 = await stateManager.AcquireSectionAsync("Parent:Child:Grandchild");
322
var
section = await stateManager.AcquireSectionAsync("Nonexistent:Path:Here");
336
var
topLevel = await stateManager.AcquireSectionAsync("TopLevel");
337
var
nested = await stateManager.AcquireSectionAsync("Parent:Child");
345
var
verifyTop = await stateManager.AcquireSectionAsync("TopLevel");
346
var
verifyNested = await stateManager.AcquireSectionAsync("Parent:Child");