示例#1
0
        public async Task <int> GetMinBlockHeight()
        {
            var records = await _tableStorage.GetDataAsync(LastProcessedBlockEntity.GeneratePartitionKey());

            return(records.DefaultIfEmpty().Min(x => x?.BlockHeight ?? 0));
        }
示例#2
0
 public async Task <int?> GetLastProcessedBlockHeightAsync()
 {
     return((await _tableStorage.GetDataAsync(LastProcessedBlockEntity.GeneratePartitionKey(), LastProcessedBlockEntity.GenerateRowKey()))?.BlockHeight);
 }