Edit

Share via


IMemoryStorageGrain.WriteStateAsync Method

Definition

Overloads

WriteStateAsync(String, String, IGrainState)

Async method to cause update of the specified grain state data into memory store.

WriteStateAsync<T>(String, IGrainState<T>)

Async method to cause update of the specified grain state data into memory store.

WriteStateAsync(String, String, IGrainState)

Source:
IMemoryStorageGrain.cs

Async method to cause update of the specified grain state data into memory store.

public System.Threading.Tasks.Task<string> WriteStateAsync (string grainType, string grainId, Orleans.IGrainState grainState);
abstract member WriteStateAsync : string * string * Orleans.IGrainState -> System.Threading.Tasks.Task<string>
Public Function WriteStateAsync (grainType As String, grainId As String, grainState As IGrainState) As Task(Of String)

Parameters

grainType
String

Type of the grain

grainId
String

Grain ID.

grainState
IGrainState

New state data to be stored for this grain.

Returns

Completion promise with new eTag for the update operation for stored grain state for the specified grain.

Applies to

WriteStateAsync<T>(String, IGrainState<T>)

Async method to cause update of the specified grain state data into memory store.

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

Type Parameters

T

Parameters

grainStoreKey
String

Grain ID.

grainState
IGrainState<T>

New state data to be stored for this grain.

Returns

Completion promise with new eTag for the update operation for stored grain state for the specified grain.

Applies to