IDeploymentStateManager.AcquireSectionAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Acquires a specific section of the deployment state with version tracking for concurrency control. The returned section is an immutable snapshot of the data at the time of acquisition.
public System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.DeploymentStateSection> AcquireSectionAsync(string sectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member AcquireSectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.Pipelines.DeploymentStateSection>
Public Function AcquireSectionAsync (sectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DeploymentStateSection)
Parameters
- sectionName
- String
The name of the section to acquire (e.g., "Parameters", "Azure").
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A StateSection containing the section data and version information.