Skip to content

HostingExtensions.AddCosmosGrainStorageAsDefault(IServiceCollection, Action<CosmosGrainStorageOptions>)

AddCosmosGrainStorageAsDefault(IServiceCollection, Action<CosmosGrainStorageOptions>)

staticextension
View source
public static IServiceCollection AddCosmosGrainStorageAsDefault(this IServiceCollection services, Action<CosmosGrainStorageOptions> configureOptions)
Configure silo to use Azure Cosmos DB storage as the default grain storage.

Parameters

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