public CosmosDbProvisioner( ICosmosClientFactory clientFactory, CosmosDbStorageOptions cosmosDbStorageOptions) { _clientFactory = clientFactory; _cosmosDbStorageOptions = cosmosDbStorageOptions; }
public CosmosEventStoreInitializer( IOptions <EventStoreClientOptions> options, ICosmosClientFactory clientFactory) { this.options = options.Value; this.clientFactory = clientFactory; }
public CosmosDbPersistenceProvider(ICosmosClientFactory clientFactory, string dbId, ICosmosDbProvisioner provisioner) { _provisioner = provisioner; _dbId = dbId; _clientFactory = clientFactory; _workflowContainer = new Lazy <Container>(() => _clientFactory.GetCosmosClient().GetDatabase(_dbId).GetContainer(WorkflowContainerName)); _eventContainer = new Lazy <Container>(() => _clientFactory.GetCosmosClient().GetDatabase(_dbId).GetContainer(EventContainerName)); _subscriptionContainer = new Lazy <Container>(() => _clientFactory.GetCosmosClient().GetDatabase(_dbId).GetContainer(SubscriptionContainerName)); }
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 CosmosContainerProvider( ICosmosClientFactory cosmosClientFactory, IOptions <EventStoreClientOptions> options) { factory = cosmosClientFactory; databaseId = options.Value.EventStoreDatabaseId; containerId = options.Value.EventStoreContainerId; indexId = options.Value.IndexContainerId; subscriptionId = options.Value.SubscriptionContainerId; }
internal void Should_Provide_StreamContainer( [Frozen] ICosmosClientFactory cosmosFactory, [Substitute] CosmosClient cosmosClient, [Substitute] IOptions <EventStoreClientOptions> options, [Substitute] Container container) { options .Value .Returns(new EventStoreClientOptions()); cosmosClient .GetContainer(default, default)
public WorkflowPurger(ICosmosClientFactory clientFactory, string dbId, CosmosDbStorageOptions cosmosDbStorageOptions) { _workflowContainer = new Lazy <Container>(() => clientFactory.GetCosmosClient() .GetDatabase(dbId) .GetContainer(cosmosDbStorageOptions.WorkflowContainerName)); }
public CosmosDbProvisioner(ICosmosClientFactory clientFactory, ILoggerFactory loggerFactory) { _clientFactory = clientFactory; }
public UserDtoReader(ICosmosClientFactory clientFactory, IOptions <AzCosmosOptions> azCosmosOptions) { _clientFactory = clientFactory; _azCosmosOptions = azCosmosOptions.Value; }
public DummieRepository(ICosmosClientFactory cosmosClientFactory) : base(cosmosClientFactory, "Dummies") { }
public BaseRepository(ICosmosClientFactory cosmosClientFactory, string containerName) { _container = cosmosClientFactory.GetContainer(containerName); }
public CosmosRepository(ICosmosClientFactory cosmosClientFactory) { _cosmosClientFactory = cosmosClientFactory; }