AzureTableStorage Class

Definition

Simple storage provider for writing grain state data to Azure table storage.

public class AzureTableStorage : Orleans.Storage.IRestExceptionDecoder, Orleans.Storage.IStorageProvider
type AzureTableStorage = class
    interface IStorageProvider
    interface IProvider
    interface IRestExceptionDecoder
Public Class AzureTableStorage
Implements IRestExceptionDecoder, IStorageProvider
Inheritance
AzureTableStorage
Implements

Examples

Example configuration for this storage provider in OrleansConfiguration.xml file:

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

Remarks

Required configuration params: DataConnectionString

Optional configuration params: TableName -- defaults to OrleansGrainStateDeleteStateOnClear -- defaults to false

Constructors

AzureTableStorage()

Default constructor

Properties

Log

Logger used by this storage provider instance.

Name

Name of this storage provider instance.

Methods

ClearStateAsync(String, GrainReference, IGrainState)

Clear / Delete state data function for this storage provider.

Close()

Shutdown this storage provider.

DecodeException(Exception, HttpStatusCode, String, Boolean)

Decodes Storage exceptions.

Init(String, IProviderRuntime, IProviderConfiguration)

Initialization function for this storage provider.

ReadStateAsync(String, GrainReference, IGrainState)

Read state data function for this storage provider.

WriteStateAsync(String, GrainReference, IGrainState)

Write state data function for this storage provider.

Applies to