public Task SetLastProcessedBlock(int height)
 {
     return(_storage.InsertOrReplaceAsync(LastProcessedBlockEntity.Create(height), existed => existed.Height < height));
 }
 public async Task <int?> GetLastProcessedBlock()
 {
     return((await _storage.GetDataAsync(LastProcessedBlockEntity.GeneratePartionKey(),
                                         LastProcessedBlockEntity.GenerateRowKey()))?.Height);
 }