Edit

Share via


IStorage.WriteStateAsync Method

Definition

Overloads

WriteStateAsync()

Writes grain state to storage.

WriteStateAsync(CancellationToken)

Writes grain state to storage.

WriteStateAsync()

Source:
IStorage.cs

Writes grain state to storage.

public System.Threading.Tasks.Task WriteStateAsync();
abstract member WriteStateAsync : unit -> System.Threading.Tasks.Task
Public Function WriteStateAsync () As Task

Returns

A Task representing the operation.

Remarks

If the Etag does not match what is present in the backing store, then this operation will fail; Set Etag to null to indicate "always delete".

Applies to

WriteStateAsync(CancellationToken)

Writes grain state to storage.

public virtual System.Threading.Tasks.Task WriteStateAsync(System.Threading.CancellationToken cancellationToken);
abstract member WriteStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function WriteStateAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Returns

A Task representing the operation.

Remarks

If the Etag does not match what is present in the backing store, then this operation will fail; Set Etag to null to indicate "always delete".

Applies to