コード例 #1
0
 public void Handle(BetTied @event)
 {
     EngageWalletChanges(
         @event.PlayerId,
         (wallet, repository) =>
     {
         var transaction  = wallet.WinBet(@event.RoundId, @event.Amount, @event.GameActionId);
         transaction.Type = TransactionType.BetTied;
         HandlePositiveTurnover(@event, repository, wallet, transaction);
     });
 }
コード例 #2
0
 public void Consume(BetTied message)
 {
     _gameSubscriber.Handle(message);
 }