Edit

Share via


IMemoryStorageGrain.ReadStateAsync Method

Definition

Overloads

ReadStateAsync(String, String)

Async method to cause retrieval of the specified grain state data from memory store.

ReadStateAsync<T>(String)

Async method to cause retrieval of the specified grain state data from memory store.

ReadStateAsync(String, String)

Source:
IMemoryStorageGrain.cs

Async method to cause retrieval of the specified grain state data from memory store.

public System.Threading.Tasks.Task<Orleans.IGrainState> ReadStateAsync (string stateStore, string grainStoreKey);
abstract member ReadStateAsync : string * string -> System.Threading.Tasks.Task<Orleans.IGrainState>
Public Function ReadStateAsync (stateStore As String, grainStoreKey As String) As Task(Of IGrainState)

Parameters

stateStore
String

The name of the store that is used to store this grain state.

grainStoreKey
String

Store key for this grain.

Returns

Value promise for the currently stored grain state for the specified grain.

Applies to

ReadStateAsync<T>(String)

Async method to cause retrieval of the specified grain state data from memory store.

public System.Threading.Tasks.Task<Orleans.IGrainState<T>> ReadStateAsync<T> (string grainStoreKey);
abstract member ReadStateAsync : string -> System.Threading.Tasks.Task<Orleans.IGrainState<'T>>
Public Function ReadStateAsync(Of T) (grainStoreKey As String) As Task(Of IGrainState(Of T))

Type Parameters

T

Parameters

grainStoreKey
String

Store key for this grain.

Returns

Value promise for the currently stored grain state for the specified grain.

Applies to