StateStorageBridge<TState>
class
Namespace: Orleans.Core
Provides functionality for operating on grain state. Implements the
Orleans.Core.IStoragepublic class StateStorageBridge<TState> : IStorage, IStorage<TState>, IGrainMigrationParticipantConstructors
Properties
EtagGets the ETag.RecordExistsGets a value indicating whether the record already exists.StateGets or sets the state.
Methods
ClearStateAsyncClears the grain state.OnDehydrate(IDehydrationContext)Called on the original activation when migration is initiated, afterIGrainBasecompletes. The participant can access and update the dehydration context.OnRehydrate(IRehydrationContext)Called on the new activation after a migration, beforeIGrainBaseis called. The participant can restore state from the migration context.ReadStateAsyncReads grain state from storage.WriteStateAsyncWrites grain state to storage.
