Edit

Share via


RedisGrainStorage.WriteStateAsync<T> Method

Definition

Write data function for this storage instance.

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

Type Parameters

T

The grain state type.

Parameters

grainType
String
grainId
GrainId

Grain ID

grainState
IGrainState<T>

State data object to be written for this grain.

Returns

Completion promise for the Write operation on the specified grain.

Implements

Applies to