示例#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);
 }