AzureBlobStorage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 grainstate
SerializeTypeNames
-- defaults to OrleansGrainState
PreserveReferencesHandling
-- defaults to false
UseFullAssemblyNames
-- defaults to false
IndentJSON
-- 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. |