public static GaUser Create(IGaUser src)
 {
     return(new GaUser
     {
         ClientId = src.ClientId,
         TrackerUserId = src.TrackerUserId,
         Cid = src.Cid
     });
 }
Example #2
0
 public static GaUserEntity Create(IGaUser src)
 {
     return(new GaUserEntity
     {
         PartitionKey = GeneratePartitionKey(),
         RowKey = GenerateRowKey(src.ClientId),
         ClientId = src.ClientId,
         TrackerUserId = src.TrackerUserId,
         Cid = src.Cid
     });
 }
Example #3
0
 public async Task AddAsync(IGaUser client)
 {
     await _tableStorage.InsertOrMergeAsync(GaUserEntity.Create(client));
 }