Skip to content
DocsTry Aspire
DocsTry

DeploymentStateSection Properties

ClassProperties3 members
Represents a section of deployment state with version tracking for concurrency control.
DataSection titled DataJsonObject
Gets the data stored in this section.
public JsonObject Data { get; }
The Nodes.JsonObject returned by this property is NOT thread-safe. Users should implement their own synchronization if concurrent access is required.
Gets the name of the state section.
public string SectionName { get; }
Gets or sets the current version of this section.
public long Version { get; set; }
This version is automatically incremented by IDeploymentStateManager.SaveSectionAsync after a successful save, allowing multiple saves of the same section instance.