예제 #1
0
        public async Task <IGaUser> GetGaUserAsync(string clientId)
        {
            var entity = await _tableStorage.GetDataAsync(GaUserEntity.GeneratePartitionKey(),
                                                          GaUserEntity.GenerateRowKey(clientId));

            return(entity != null?GaUser.Create(entity) : null);
        }
예제 #2
0
 public async Task <IEnumerable <IGaUser> > GetAllAsync()
 {
     return((await _tableStorage.GetDataAsync(GaUserEntity.GeneratePartitionKey()))
            .Select(GaUser.Create));
 }
예제 #3
0
 public async Task AddAsync(IGaUser client)
 {
     await _tableStorage.InsertOrMergeAsync(GaUserEntity.Create(client));
 }