Edit

Share via


MemoryGrainStorage.ReadStateAsync Method

Definition

Overloads

ReadStateAsync(String, GrainReference, IGrainState)

Read state data function for this storage provider.

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

Read data function for this storage instance.

ReadStateAsync(String, GrainReference, IGrainState)

Source:
MemoryStorage.cs

Read state data function for this storage provider.

public virtual System.Threading.Tasks.Task ReadStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member ReadStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
override this.ReadStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Overridable Function ReadStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task

Parameters

grainType
String
grainReference
GrainReference
grainState
IGrainState

Returns

Implements

Applies to

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

Source:
MemoryStorage.cs
Source:
MemoryStorage.cs
Source:
MemoryStorage.cs
Source:
MemoryStorage.cs

Read data function for this storage instance.

public virtual System.Threading.Tasks.Task ReadStateAsync<T> (string grainType, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member ReadStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
override this.ReadStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Overridable Function ReadStateAsync(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 populated for this grain.

Returns

Completion promise for the Read operation on the specified grain.

Implements

Applies to