Esempio n. 1
0
        public void Consume(PlayerTimedOut message)
        {
            var paymentRepository = _container.Resolve <IPaymentRepository>();

            var player = paymentRepository.Players
                         .Single(o => o.Id == message.PlayerId);

            player.IsTimeOut          = true;
            player.TimeOutEndDate     = message.TimeOutEndDate;
            player.IsSelfExclude      = false;
            player.SelfExcludeEndDate = null;

            paymentRepository.Players.AddOrUpdate(player);
            paymentRepository.SaveChanges();
        }
 public void Consume(PlayerTimedOut message)
 {
     _eventHandlers.Handle(message);
 }
Esempio n. 3
0
 public void Handle(PlayerTimedOut @event)
 {
     AddActivityLog(AdminActivityLogCategory.Player, @event);
 }