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); }
public void Handle(PlayerTimedOut @event) { AddActivityLog(AdminActivityLogCategory.Player, @event); }