Skip to content

HostingExtensions.AddCosmosGrainStorage(IServiceCollection, string, Action<CosmosGrainStorageOptions>)

AddCosmosGrainStorage(IServiceCollection, string, Action<CosmosGrainStorageOptions>)

staticextension
View source
public static IServiceCollection AddCosmosGrainStorage(this IServiceCollection services, string name, Action<CosmosGrainStorageOptions> configureOptions)
Configure silo to use Azure Cosmos DB storage for grain storage.

Parameters

servicesIServiceCollection
The service collection.
namestring
The storage provider name.
configureOptionsAction<CosmosGrainStorageOptions>
The delegate used to configure the provider.