Share via


IStorage<TState> 介面

定義

提供處理細微性狀態的方法。

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

類型參數

TState
衍生
實作

屬性

Etag

提供處理細微性狀態的方法。

RecordExists

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

(繼承來源 IStorage)
State

取得或設定狀態。

方法

ClearStateAsync()

非同步方法會導致清除並重設目前的細微性狀態資料。 這通常表示狀態記錄會從備份存放區中刪除,但特定行為是由針對此細微性設定的儲存體提供者實例所定義。 如果 Etag 不相符,則此作業將會失敗;設定 Etag = null 表示「永遠刪除」。

ReadStateAsync()

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

WriteStateAsync()

非同步方法會導致目前細微性狀態資料寫入備份存放區。 如果 Etag 不相符,則此作業將會失敗;設定 Etag = null 表示「永遠覆寫」。

適用於