Share via


IPersistentState<TState> 介面

定義

提供具有儲存、清除和重新整理狀態功能之粒紋狀態的存取權。

public interface IPersistentState<TState> : Orleans.Core.IStorage<TState> where TState : new()
public interface IPersistentState<TState> : Orleans.Core.IStorage<TState>
type IPersistentState<'State (requires 'State : (new : unit -> 'State))> = interface
    interface IStorage<'State (requires 'State : (new : unit -> 'State))>
type IPersistentState<'State> = interface
    interface IStorage<'State>
    interface IStorage
Public Interface IPersistentState(Of TState)
Implements IStorage(Of TState)

類型參數

TState

基礎狀態類型。

實作

屬性

Etag

取得 ETag。

(繼承來源 IStorage)
RecordExists

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

(繼承來源 IStorage)
State

取得或設定狀態。

(繼承來源 IStorage<TState>)

方法

ClearStateAsync()

清除粒紋狀態。

(繼承來源 IStorage)
ReadStateAsync()

從儲存體讀取粒紋狀態。

(繼承來源 IStorage)
WriteStateAsync()

將粒紋狀態寫入儲存體。

(繼承來源 IStorage)

適用於

另請參閱