public HotelDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider) { _cosmosDBProvider = cosmosDBProvider; _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() => { return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME, new string[] { "/location", "/startingTimeEpoc", "/endingTimeEpoc" })); }); }
public FlightDataCosmosSQLProvider(CosmosDBProvider cosmosDBProvider) { _cosmosDBProvider = cosmosDBProvider; _getClientAndVerifyCollection = new AsyncLazy <DocumentClient>(async() => { return(await _cosmosDBProvider.GetDocumentClientAndVerifyCollection(COLLECTIONNAME, new string[] { "/departingFrom", "/arrivingAt", "/departureTimeEpoc" })); }); }
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); }); }