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); }); }
public void Consume(BetTied message) { _gameSubscriber.Handle(message); }