public static UnsignedTransactionEntity Create(IUnsignedTransaction transaction)
 {
     return(new UnsignedTransactionEntity
     {
         PartitionKey = GeneratePartitionKey(transaction.ClientId),
         RowKey = GenerateRowKey(transaction.Id),
         Id = transaction.Id,
         Hex = transaction.Hex,
         ClientId = transaction.ClientId
     });
 }
Beispiel #2
0
 public async Task InsertAsync(IUnsignedTransaction transaction)
 {
     var entity = UnsignedTransactionEntity.Create(transaction);
     await _tableStorage.InsertAsync(entity);
 }