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

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

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

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