Share via


StateStorageBridge<TState> 類別

定義

提供在粒紋狀態上運作的功能。 實作 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)

類型參數

TState

基礎狀態類型。

繼承
StateStorageBridge<TState>
實作

建構函式

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

提供在粒紋狀態上運作的功能。 實作 IStorage<TState>

StateStorageBridge<TState>(String, IGrainContext, IGrainStorage)

提供在粒紋狀態上運作的功能。 實作 IStorage<TState>

StateStorageBridge<TState>(String, IGrainContext, IGrainStorage, ILoggerFactory, IActivatorProvider)
已淘汰.

提供在粒紋狀態上運作的功能。 實作 IStorage<TState>

屬性

Etag

取得 ETag。

RecordExists

取得值,指出記錄是否已存在。

State

取得或設定狀態。

方法

ClearStateAsync()

非同步方法會導致目前細微性狀態資料寫入備份存放區。

OnDehydrate(IDehydrationContext)

提供在粒紋狀態上運作的功能。 實作 IStorage<TState>

OnRehydrate(IRehydrationContext)

提供在粒紋狀態上運作的功能。 實作 IStorage<TState>

ReadStateAsync()

非同步方法,以從備份存放區重新整理目前的細微性狀態資料。 將會覆寫任何先前的細微性狀態資料內容。

WriteStateAsync()

非同步方法會導致目前細微性狀態資料寫入備份存放區。

適用於

另請參閱