IUserSecretsManager.SaveStateAsync(JsonObject, 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.
Saves state to user secrets asynchronously (for deployment state manager). If multiple callers save state concurrently, the last write wins.
public System.Threading.Tasks.Task SaveStateAsync(System.Text.Json.Nodes.JsonObject state, System.Threading.CancellationToken cancellationToken = default);
abstract member SaveStateAsync : System.Text.Json.Nodes.JsonObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveStateAsync (state As JsonObject, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- state
- JsonObject
The state to save as a JSON object.
- cancellationToken
- CancellationToken
Cancellation token.