コード例 #1
0
 public static CoinContractFilterEntity Create(ICoinContractFilter filter)
 {
     return(new CoinContractFilterEntity
     {
         ContractAddress = filter.ContractAddress,
         EventName = filter.EventName,
         RowKey = filter.Filter,
         PartitionKey = GeneratePartitionKey(),
         CoinName = filter.CoinName
     });
 }
コード例 #2
0
 public async Task AddFilterAsync(ICoinContractFilter filter)
 {
     var entity = CoinContractFilterEntity.Create(filter);
     await _table.InsertAsync(entity);
 }