Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Azure Storage grain persistence provider supports both Azure Blob Storage and Azure Table Storage.
Configure Azure Table Storage
Install the Microsoft.Orleans.Persistence.AzureStorage package from NuGet. The Azure Table Storage provider stores state in a table row, splitting the state across multiple columns if it exceeds the limits of a single column. Each row can hold a maximum of 1 megabyte, as imposed by Azure Table Storage.
Configure the Azure Table Storage grain persistence provider using the AzureTableSiloBuilderExtensions.AddAzureTableGrainStorage extension method.
siloBuilder.AddAzureTableGrainStorage(
name: "profileStore",
configureOptions: options =>
{
options.ConfigureTableServiceClient(
"DefaultEndpointsProtocol=https;AccountName=data1;AccountKey=SOMETHING1");
});
Configure Azure Blob Storage
The Azure Blob Storage provider stores state in a blob.
Configure the Azure Blob Storage grain persistence provider using the AzureBlobSiloBuilderExtensions.AddAzureBlobGrainStorage extension method.
siloBuilder.AddAzureBlobGrainStorage(
name: "profileStore",
configureOptions: options =>
{
options.ConfigureBlobServiceClient(
"DefaultEndpointsProtocol=https;AccountName=data1;AccountKey=SOMETHING1");
});