StateStorageBridge<TState> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides functionality for operating on grain state. Implements the IStorage<TState>
public class StateStorageBridge<TState> : Orleans.Core.IStorage<TState> where TState : new()
public class StateStorageBridge<TState> : Orleans.Core.IStorage<TState>
public class StateStorageBridge<TState> : Orleans.Core.IStorage<TState>, Orleans.Runtime.IGrainMigrationParticipant
type StateStorageBridge<'State (requires 'State : (new : unit -> 'State))> = class
interface IStorage<'State (requires 'State : (new : unit -> 'State))>
type StateStorageBridge<'State> = class
interface IStorage<'State>
interface IStorage
type StateStorageBridge<'State> = class
interface IStorage<'State>
interface IStorage
interface IGrainMigrationParticipant
Public Class StateStorageBridge(Of TState)
Implements IStorage(Of TState)
Public Class StateStorageBridge(Of TState)
Implements IGrainMigrationParticipant, IStorage(Of TState)
Type Parameters
- TState
The underlying state type.
- Inheritance
-
StateStorageBridge<TState>
- Implements
Constructors
Properties
Etag |
Gets the ETag. |
RecordExists |
Gets a value indicating whether the record already exists. |
State |
Gets or sets the state. |
Methods
ClearStateAsync() |
Async method to cause write of the current grain state data into backing store. |
OnDehydrate(IDehydrationContext) | |
OnRehydrate(IRehydrationContext) | |
ReadStateAsync() |
Async method to cause refresh of the current grain state data from backing store. Any previous contents of the grain state data will be overwritten. |
WriteStateAsync() |
Async method to cause write of the current grain state data into backing store. |