Share via


AzureTableStorage 類別

定義

將粒紋狀態資料寫入 Azure 資料表儲存體的簡單儲存體提供者。

public class AzureTableStorage : Orleans.Storage.IRestExceptionDecoder, Orleans.Storage.IStorageProvider
type AzureTableStorage = class
    interface IStorageProvider
    interface IProvider
    interface IRestExceptionDecoder
Public Class AzureTableStorage
Implements IRestExceptionDecoder, IStorageProvider
繼承
AzureTableStorage
實作

範例

OrleansConfiguration.xml 檔案中此儲存體提供者的範例組態:

<OrleansConfiguration xmlns="urn:orleans">
  <Globals>
    <StorageProviders>
      <Provider Type="Orleans.Storage.AzureTableStorage" Name="AzureStore"
        DataConnectionString="UseDevelopmentStorage=true"
        DeleteStateOnClear="true"
      />
  </StorageProviders>

備註

必要的組態參數: DataConnectionString

選擇性組態參數: TableName -- 預設為 OrleansGrainStateDeleteStateOnClear -- 預設值為false

建構函式

AzureTableStorage()

預設建構函式

屬性

Log

這個儲存體提供者實例所使用的記錄器。

Name

此儲存體提供者實例的名稱。

方法

ClearStateAsync(String, GrainReference, IGrainState)

清除/刪除此儲存體提供者的狀態資料函式。

Close()

關閉此儲存體提供者。

DecodeException(Exception, HttpStatusCode, String, Boolean)

解碼儲存體例外狀況。

Init(String, IProviderRuntime, IProviderConfiguration)

這個儲存體提供者的初始化函式。

ReadStateAsync(String, GrainReference, IGrainState)

此儲存體提供者的讀取狀態資料函式。

WriteStateAsync(String, GrainReference, IGrainState)

寫入此儲存體提供者的狀態資料函式。

適用於