Пример #1
0
 public Task AddUserAsync(string clientId, string irohaUsername, string publicKey, string clientName)
 {
     return(_tableStorage.InsertOrMergeAsync(D3UserEntity.Create(clientId, irohaUsername, publicKey, clientName)));
 }
Пример #2
0
 public async Task <ID3User> GetUserAsync(string irohaUsername)
 {
     return(await _tableStorage.GetDataAsync(D3UserEntity.GeneratePartitionKey(irohaUsername),
                                             D3UserEntity.GenerateRowKey(irohaUsername)));
 }