Ejemplo n.º 1
0
 public static WhiteListAddressesEntity Create(IWhiteListAddress whiteListAddress)
 {
     return(new WhiteListAddressesEntity
     {
         PartitionKey = GetPartitionKey(),
         Address = GetRowKey(whiteListAddress.Address),
     });
 }
Ejemplo n.º 2
0
        public async Task SaveAsync(IWhiteListAddress address)
        {
            var entity = WhiteListAddressesEntity.Create(address);

            await _table.InsertOrReplaceAsync(entity);
        }