IDeploymentStateManager.SaveSectionAsync 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.
Saves a section of deployment state with optimistic concurrency control. The section must have a matching version number or a concurrency exception will be thrown.
public System.Threading.Tasks.Task SaveSectionAsync(Aspire.Hosting.Pipelines.DeploymentStateSection section, System.Threading.CancellationToken cancellationToken = default);
abstract member SaveSectionAsync : Aspire.Hosting.Pipelines.DeploymentStateSection * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveSectionAsync (section As DeploymentStateSection, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- section
- DeploymentStateSection
The section to save, including version information.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
Thrown when a version conflict is detected, indicating the section was modified after it was acquired.