AddCosmosGrainStorage(ISiloBuilder, string, Action<CosmosGrainStorageOptions>, Type)
staticextension
public static ISiloBuilder AddCosmosGrainStorage(this ISiloBuilder builder, string name, Action<CosmosGrainStorageOptions> configureOptions, Type customPartitionKeyProviderType) Configure silo to use Azure Cosmos DB storage for grain storage using a custom Partition Key Provider.
Parameters
builderISiloBuilder- The silo builder.
namestring- The storage provider name.
configureOptionsAction<CosmosGrainStorageOptions>- The delegate used to configure the provider.
customPartitionKeyProviderTypeType- The custom partition key provider type.
