public CosmosRepository(ICosmosClientFactory cosmosFactory, ICosmosServiceFactory cosmosServiceFactory, IOptions <CosmosRepositoryOptions> options, CosmosSerializer cosmosSerializer) { this.cosmosClientFactory = cosmosFactory; this.cosmosServiceFactory = cosmosServiceFactory; this.options = options; this.cosmosSerializer = cosmosSerializer; CosmosServices = CreateDatabaseContainer(); }
public CosmosExtensionConfigProvider( IOptions <CosmosOptions> options, ICosmosServiceFactory cosmosServiceFactory, IConfiguration configuration, INameResolver nameResolver, ILoggerFactory loggerFactory) { this.configuration = configuration; this.cosmosServiceFactory = cosmosServiceFactory; this.nameResolver = nameResolver; this.options = options.Value; this.loggerFactory = loggerFactory; }