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();
        }
Esempio n. 2
0
 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;
 }