Exemplo n.º 1
0
 public Task <AsyncTaskResult> HandleAsync(NewSaleLogEvent evnt)
 {
     return(TryInsertRecordAsync(connection =>
     {
         var info = evnt.SaleLogInfo;
         return connection.InsertAsync(new
         {
             Id = GuidUtil.NewSequentialId(),
             OfflineStoreId = evnt.AggregateRootId,
             UserWalletId = info.UserWalletId,
             StoreOwnerWalletId = info.StoreOwnerWalletId,
             StoreName = info.StoreName,
             Region = info.Region,
             Address = info.Address,
             Amount = info.Amount,
             StoreAmount = info.StoreAmount,
             UserBenevolence = info.UserBenevolence,
             CreatedOn = evnt.Timestamp
         }, ConfigSettings.OfflineStoreSaleLogTable);
     }));
 }
Exemplo n.º 2
0
 private void Handle(NewSaleLogEvent evnt)
 {
 }