Edit

Share via


StateStorageBridge<TState> Class

Definition

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

StateStorageBridge<TState>(String, GrainReference, IGrainStorage, ILoggerFactory)
StateStorageBridge<TState>(String, IGrainContext, IGrainStorage)
StateStorageBridge<TState>(String, IGrainContext, IGrainStorage, ILoggerFactory, IActivatorProvider)

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.

Applies to

See also