AzureBlobStorageOptions
class
Namespace: Orleans.Configuration
Configures the Azure Blob grain storage provider.
public class AzureBlobStorageOptions : IStorageProviderSerializerOptionsConstructors
Properties
BlobServiceClientGets or sets the client used to access the Azure Blob Service.BuildContainerFactoryA function for building container factory instancesClientOptionsOptions to be used when configuring the blob storage client, ornullto use the default options.ContainerNameContainer name where grain stage is storedDeleteStateOnClearGets or sets a value indicating whether to delete the state whenIGrainStorageis called. Defaults to true.GrainStorageSerializerGets or sets the serializer to use for this storage provider.InitStageStage of silo lifecycle where storage should be initialized. Storage must be initialized prior to use.
Methods
ConfigureBlobServiceClient(Func<Task<BlobServiceClient>>)Configures theAzureBlobStorageOptionsusing the provided callback.ConfigureBlobServiceClient(Uri)Configures theAzureBlobStorageOptionsusing an authenticated service URI.ConfigureBlobServiceClient(Uri, AzureSasCredential)Configures theAzureBlobStorageOptionsusing an authenticated service URI and aAzure.AzureSasCredential.ConfigureBlobServiceClient(Uri, StorageSharedKeyCredential)Configures theAzureBlobStorageOptionsusing an authenticated service URI and aAzure.Storage.StorageSharedKeyCredential.ConfigureBlobServiceClient(Uri, TokenCredential)Configures theAzureBlobStorageOptionsusing an authenticated service URI and aAzure.Core.TokenCredential.ConfigureBlobServiceClient(string)Configures theAzureBlobStorageOptionsusing a connection string.
Fields
DEFAULT_CONTAINER_NAMEThe default Azure Blob container name used to store grain state.DEFAULT_INIT_STAGEThe default silo lifecycle stage at which the storage provider is initialized.
