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