36 instantiations of DeploymentStateSection
Aspire.Hosting (1)
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.Kubernetes.Tests (2)
Aspire.Hosting.Azure.Sandboxes (4)
Aspire.Hosting.Azure.Tests (19)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Tests (5)
406 references to DeploymentStateSection
Aspire.Hosting (20)
Aspire.Hosting.Azure (40)
AzureProvisioningController.cs (19)
1258var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
1925var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false);
1950var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
2627var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
2870var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false);
2889var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false);
2902var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resourceName}", cancellationToken).ConfigureAwait(false);
2928var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}", cancellationToken).ConfigureAwait(false);
2965var section = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
3049var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
3217private static string? TryGetCachedDeploymentId(DeploymentStateSection section)
3220private static bool IsActiveCachedDeployment(DeploymentStateSection section)
3274private string? TryGetPreservedLocationOverride(AzureBicepResource resource, DeploymentStateSection section, string? environmentLocation)
3313private static string? TryGetExplicitLocationOverride(DeploymentStateSection section)
3492var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
3518var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
3637var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
3712var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
3944var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{bicepResource.Name}").ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (15)
51var stateSection = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
173var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
348DeploymentStateSection stateSection,
391DeploymentStateSection stateSection,
436private async Task PersistReconciledProvisioningStateAsync(DeploymentStateSection stateSection, string provisioningState, CancellationToken cancellationToken)
450private async Task ClearCachedRunningDeploymentStateAsync(DeploymentStateSection stateSection, CancellationToken cancellationToken)
467DeploymentStateSection stateSection,
490private static bool IsRunningCachedDeployment(DeploymentStateSection stateSection)
623var canceledStateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, CancellationToken.None).ConfigureAwait(false);
674DeploymentStateSection? stateSection = null;
856var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, cancellationToken).ConfigureAwait(false);
1318DeploymentStateSection stateSection,
1479var section = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken).ConfigureAwait(false);
1489private static string? GetStateValue(DeploymentStateSection section, string key) =>
1492private static string GetConfiguredLocation(DeploymentStateSection section, string? fallbackLocation)
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.Kubernetes (5)
Aspire.Hosting.Azure.Kubernetes.Tests (5)
Aspire.Hosting.Azure.Sandboxes (25)
AzureSandboxContainerDeployment.cs (23)
257var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false);
259var previousStateSection = CloneStateSection(stateSection);
1319var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false);
1397var sandboxesSection = await deploymentStateManager.AcquireCurrentSectionAsync(SandboxStateParentSection, context.CancellationToken).ConfigureAwait(false);
1413var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, context.CancellationToken).ConfigureAwait(false);
1588DeploymentStateSection stateSection,
1628private static DeploymentStateSection CloneStateSection(DeploymentStateSection stateSection)
1868private static string GetStateResourceName(DeploymentStateSection stateSection, string sectionName)
1926DeploymentStateSection stateSection,
1945DeploymentStateSection stateSection,
1962DeploymentStateSection stateSection,
1979private static JsonObject? GetPendingLegacyDeploymentCleanup(DeploymentStateSection stateSection) =>
1983DeploymentStateSection stateSection,
2056DeploymentStateSection previousStateSection,
2092DeploymentStateSection stateSection,
2104internal static void ValidateDeploymentScope(DeploymentStateSection stateSection, AzureDevComputeResourceScope scope)
2134internal static bool HasRemoteDeploymentState(DeploymentStateSection stateSection) =>
2150private static string? GetFirstStateUrl(DeploymentStateSection stateSection)
2168private static IReadOnlySet<string> GetExcludedDeployIds(string deployId, DeploymentStateSection previousStateSection)
2183private static IReadOnlySet<string> GetExcludedResourceIds(string id, DeploymentStateSection previousStateSection, string stateKey)
2198private static IEnumerable<int> GetStatePorts(DeploymentStateSection stateSection)
2300private static string GetRequiredStateValue(DeploymentStateSection section, string name)
Aspire.Hosting.Azure.Tests (147)
AzureBicepProvisionerTests.cs (28)
39var cached = await deploymentState.AcquireSectionAsync("Azure:Deployments:registration");
50var azureState = await deploymentState.AcquireSectionAsync("Azure");
903var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
937var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
973var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None);
981var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1024var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", CancellationToken.None);
1032var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1066var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1100var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1149var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1404var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1437var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1469var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1503var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1562var section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2", CancellationToken.None);
1663var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1718var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1744var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1773var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1799var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1824var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1857var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
1915var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}");
2015public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
2020public Task<DeploymentStateSection> AcquireCurrentSectionAsync(string sectionName, CancellationToken cancellationToken = default)
2023public Task DeleteSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
2028public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
AzureEnvironmentResourceExtensionsTests.cs (80)
75var azure = await deploymentState.AcquireSectionAsync("Azure", cts.Token);
80var directoryState = await deploymentState.AcquireSectionAsync("Azure:Deployments:directory", cts.Token);
94var storageState = await deploymentState.AcquireSectionAsync("Azure:Deployments:storage", cts.Token);
320var saved = await deploymentState.AcquireSectionAsync("Azure", cts.Token);
614var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
619var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
910var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
946var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1132var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
1139var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1244var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1519var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1577var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1638var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1700var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
1828var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2004var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2042var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2109var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2123var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
2212var keyVaultSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:kv");
2284var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2363var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2430var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2434var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
2508var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
2512var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
3146var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3193var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3251var bicepSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage-deployment");
3254var visibleSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3280var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3286var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3352var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3419var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3478var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3544var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3608var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3673var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3726var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3733var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
3737var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
3804var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3851var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3900var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3946var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
3952var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4006var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4012var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
4047var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4053var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
4092var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4125var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
4152var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4254var keyVaultSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:kv3");
4334var keyVaultSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:kv3");
4658var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4666var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4707var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4713var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4755var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4761var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4771var storage2Section = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage2");
4815var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4821var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4854var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4861var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4913var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
4954var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
4960var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
5002var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure");
5008var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
5139var storageSection = await deploymentStateManager.AcquireSectionAsync("Azure:Deployments:storage");
5729public Task<DeploymentStateSection> AcquireSectionAsync(string sectionName, CancellationToken cancellationToken = default)
5741public Task<DeploymentStateSection> AcquireCurrentSectionAsync(string sectionName, CancellationToken cancellationToken = default)
5744public Task DeleteSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
5754public Task SaveSectionAsync(DeploymentStateSection section, CancellationToken cancellationToken = default)
5908var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken);
5921var azureSection = await deploymentStateManager.AcquireSectionAsync("Azure", cancellationToken);
6059var section = await deploymentStateManager.AcquireSectionAsync($"Azure:Deployments:{resource.Name}", cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Docker (2)
Aspire.Hosting.Docker.Tests (4)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Kubernetes.Tests (6)
Aspire.Hosting.Tests (147)