public static CoinContractFilterEntity Create(ICoinContractFilter filter) { return(new CoinContractFilterEntity { ContractAddress = filter.ContractAddress, EventName = filter.EventName, RowKey = filter.Filter, PartitionKey = GeneratePartitionKey(), CoinName = filter.CoinName }); }
public async Task AddFilterAsync(ICoinContractFilter filter) { var entity = CoinContractFilterEntity.Create(filter); await _table.InsertAsync(entity); }