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.

C#
public System.Threading.Tasks.Task WriteStateAsync();

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

.NET Orleans 9.0.0 and other versions
Product Versions
.NET Orleans 1.5.10, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

WriteStateAsync(CancellationToken)

Writes grain state to storage.

C#
public virtual System.Threading.Tasks.Task WriteStateAsync(System.Threading.CancellationToken cancellationToken);

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