Share via


IDeploymentStateManager.SaveSectionAsync Method

Definition

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.

Applies to