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;
 }
示例#3
0
 public DocumentCollectionConfigurator(ICosmosConfiguration configuration)
 {
     _configuration = configuration;
 }
 public CosmosActivityDocumentRepository(ICosmosClient cosmosClient, ICosmosConfiguration config)
 {
     _cosmosClient = cosmosClient;
     _config       = config;
 }