Skip to content

Grain<TGrainState> Methods

Base class for a Grain with declared persistent state.

ClearStateAsync

virtual
View source
protected virtual Task ClearStateAsync()
Clears the current grain state data from backing store.

Returns

A System.Threading.Tasks.Task representing the operation.

ReadStateAsync

virtual
View source
protected virtual Task ReadStateAsync()
Reads grain state from backing store, updating Orleans.Grain.State.

Returns

A System.Threading.Tasks.Task representing the operation.

WriteStateAsync

virtual
View source
protected virtual Task WriteStateAsync()
Write the current grain state data into the backing store.

Returns

A System.Threading.Tasks.Task representing the operation.