Skip to content

RedisGrainStorage.ReadStateAsync(string, GrainId, IGrainState<T>)

ReadStateAsync(string, GrainId, IGrainState<T>)

View source
public Task ReadStateAsync<T>(string grainType, GrainId grainId, IGrainState<T> grainState)
Read data function for this storage instance.

Parameters

grainTypestring
Name of the state for this grain
grainIdGrainId
Grain ID
grainStateIGrainState<T>
State data object to be populated for this grain.

Returns

Completion promise for the Read operation on the specified grain.