Skip to content

CosmosGrainStorage.WriteStateAsync(string, GrainId, IGrainState<T>)

WriteStateAsync(string, GrainId, IGrainState<T>)

View source
public Task WriteStateAsync<T>(string grainType, GrainId grainId, IGrainState<T> grainState)
Write 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 written for this grain.

Returns

Completion promise for the Write operation on the specified grain.