Пример #1
0
 public Task SetOffset(int offset)
 {
     return(_tableStorage.InsertOrReplaceAsync(OffsetRecord.Create(offset)));
 }
Пример #2
0
 public async Task <int> GetOffset()
 {
     return((await _tableStorage.GetDataAsync(OffsetRecord.GeneratePartition(),
                                              OffsetRecord.GenerateRowKey()) ?? OffsetRecord.Create(0)).Offset);
 }