示例#1
0
        public void Consume(RiskLevelUpdated message)
        {
            using (var scope = CustomTransactionScope.GetTransactionScope())
            {
                var riskLevel = _brandRepository.RiskLevels.Single(x => x.Id == message.Id);

                riskLevel.BrandId     = message.BrandId;
                riskLevel.Name        = message.Name;
                riskLevel.Level       = message.Level;
                riskLevel.Description = message.Description;
                riskLevel.Status      = (Status)message.Status;

                _brandRepository.SaveChanges();

                scope.Complete();
            }
        }
 public void Consume(RiskLevelUpdated message)
 {
     _eventHandlers.Handle(message);
 }
示例#3
0
 public void Handle(RiskLevelUpdated @event)
 {
     AddActivityLog(AdminActivityLogCategory.FraudRiskLevel, @event);
 }