예제 #1
0
        public void Process(AlertRuleUpdated @event)
        {
            var rule = _repositoryForAlertRule.GetById(@event.Id);

            rule.HealthRiskName = @event.AlertRuleName;
            _repositoryForAlertRule.Update(rule);
        }
예제 #2
0
 public void Process(AlertRuleUpdated @event)
 {
     var alertRule = _alertRules.GetById(@event.Id);
     alertRule.AlertRuleName = @event.AlertRuleName;
     alertRule.DistanceBetweenCasesInMeters = @event.DistanceBetweenCasesInMeters;
     alertRule.HealthRiskId = @event.HealthRiskId;
     alertRule.NumberOfCasesThreshold = @event.NumberOfCasesThreshold;
     alertRule.ThresholdTimeframeInHours = @event.ThresholdTimeframeInHours;
     _alertRules.Update(alertRule);
 }