public SubscriptionService(ICosmosConfiguration cosmosConfiguration) { _endpointUri = cosmosConfiguration.EndpointUri; _primaryKey = cosmosConfiguration.PrimaryKey; _databaseId = cosmosConfiguration.DatabaseId; _client = new CosmosClient(_endpointUri, _primaryKey); }
public CosmosClient(ICosmosConfiguration messageServiceBusConfiguration, IDocumentCollectionConfigurator documentCollectionConfigurator) { _client = new Lazy <DocumentClient>(InitialiseClient); _documentCollectionConfigurator = documentCollectionConfigurator; _config = messageServiceBusConfiguration; }
public DocumentCollectionConfigurator(ICosmosConfiguration configuration) { _configuration = configuration; }
public CosmosActivityDocumentRepository(ICosmosClient cosmosClient, ICosmosConfiguration config) { _cosmosClient = cosmosClient; _config = config; }