Пример #1
0
        public async Task <List <CosmosSensorData> > GetAllItems(FilterValues filter)
        {
            var query  = new CosmosQuery <CosmosSensorData>(CC.SensorLearnContainer);
            var result = await query.GetAllItems(filter);

            return(result);
        }
Пример #2
0
        public async Task <FilterValues> GetFilter()
        {
            string sql = "SELECT min(c.EventEnqueuedUtcTime) as MinDateTime, " +
                         "max(c.EventEnqueuedUtcTime) as MaxDateTime " +
                         "FROM c";

            var query  = new CosmosQuery <FilterValues>(CC.SensorLearnContainer);
            var result = await query.GetSingleResult(sql);

            return(result);
        }