public Task ScanAllAsync(Func <IEnumerable <IMonitoringRecord>, Task> chunk)
        {
            var partitionKey = MonitoringRecordEntity.GeneratePartitionKey();

            return(_tableStorage.ScanDataAsync(partitionKey, chunk));
        }
        public Task UpdateOrCreate(IMonitoringRecord record)
        {
            var entity = MonitoringRecordEntity.Create(record);

            return(_tableStorage.InsertOrReplaceAsync(entity));
        }
        public async Task <IEnumerable <IMonitoringRecord> > GetAllAsync()
        {
            var partitionKey = MonitoringRecordEntity.GeneratePartitionKey();

            return(await _tableStorage.GetDataAsync(partitionKey));
        }