Skip to content

GrainStateWithMetaData<TView> Methods

A class that extends grain state with versioning metadata, so that a log-consistent grain can use a standard storage provider.

FlipBit(string)

View source
public bool FlipBit(string Replica)
toggle one of the bits in Orleans.EventSourcing.StateStorage.GrainStateWithMetaData.WriteVector and return the new value.

Parameters

Replicastring
The replica for which we want to flip the bit

Returns

the state of the bit after flipping it

GetBit(string)

View source
public bool GetBit(string Replica)
Gets one of the bits in Orleans.EventSourcing.StateStorage.GrainStateWithMetaData.WriteVector

Parameters

Replicastring
The replica for which we want to look up the bit