Skip to content

CosmosStorageFactory Methods

Creates configured CosmosGrainStorage instances.

Create(IServiceProvider, string)

static
View source
public static CosmosGrainStorage Create(IServiceProvider services, string name)
Creates a Cosmos DB grain storage provider with the specified name.

Parameters

servicesIServiceProvider
The service provider.
namestring
The storage provider name.

Returns

The configured grain storage provider.