public HotelDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider)
 {
     _cosmosDBProvider             = cosmosDBProvider;
     _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() =>
     {
         return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME, new string[] { "/location", "/startingTimeEpoc", "/endingTimeEpoc" }));
     });
 }
Example #2
0
 public FlightDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider)
 {
     _cosmosDBProvider             = cosmosDBProvider;
     _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() =>
     {
         return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME, new string[] { "/departingFrom", "/arrivingAt", "/departureTimeEpoc" }));
     });
 }
Example #3
0
 public AirportDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider)
 {
     _cosmosDBProvider             = cosmosDBProvider;
     _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() =>
     {
         return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME));
     });
 }
 public ItineraryDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider)
 {
     _cosmosDBProvider             = cosmosDBProvider;
     _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() =>
     {
         return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME, new string[] { "/recordLocator" }));
     });
 }
 public CartDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider, ContosoConfiguration contosoConfig)
 {
     _cosmosDBProvider = cosmosDBProvider;
     _contosoConfig = contosoConfig;
     _getClientAndVerifyCollection = new AsyncLazy<DocumentClient>(async () =>
     {
         return await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME);
     });
 }