編輯

共用方式為


IStorage.ReadStateAsync Method

Definition

Overloads

ReadStateAsync()

Reads grain state from storage.

ReadStateAsync(CancellationToken)

Reads grain state from storage.

ReadStateAsync()

Source:
IStorage.cs

Reads grain state from storage.

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

Returns

A Task representing the operation.

Remarks

Any previous contents of the grain state data will be overwritten.

Applies to

ReadStateAsync(CancellationToken)

Reads grain state from storage.

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

Parameters

cancellationToken
CancellationToken

Returns

A Task representing the operation.

Remarks

Any previous contents of the grain state data will be overwritten.

Applies to