Edytuj

Udostępnij za pośrednictwem


AzureBlobStorage Class

Definition

Simple storage provider for writing grain state data to Azure blob storage in JSON format.

public class AzureBlobStorage : Orleans.Storage.IStorageProvider
type AzureBlobStorage = class
    interface IStorageProvider
    interface IProvider
Public Class AzureBlobStorage
Implements IStorageProvider
Inheritance
AzureBlobStorage
Implements

Examples

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

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

Remarks

Required configuration params: DataConnectionString

Optional configuration params: ContainerName -- defaults to grainstateSerializeTypeNames -- defaults to OrleansGrainStatePreserveReferencesHandling -- defaults to falseUseFullAssemblyNames -- defaults to falseIndentJSON -- defaults to false

Constructors

AzureBlobStorage()

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.

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