Example #1
0
        public async Task <double[]> GetAsync(string assetPairId)
        {
            var entity = await _tableStorage.GetDataAsync(FeedHoursHistoryEntity.GeneratePartition(),
                                                          FeedHoursHistoryEntity.GenerateRowKey(assetPairId));

            return(GetData(entity));
        }
Example #2
0
        public async Task <Dictionary <string, double[]> > GetAllAsync()
        {
            var entities = await _tableStorage.GetDataAsync(FeedHoursHistoryEntity.GeneratePartition());

            return(entities.ToDictionary(entity => entity.RowKey, GetData));
        }