public AlertDefinitionsController(
     IAlertDefinitionsService alertDefinitionsService,
     IMapper mapper)
 {
     _alertDefinitionsService = alertDefinitionsService ?? throw new ArgumentNullException(nameof(alertDefinitionsService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
        public AlertsPageViewModel(
            IAlertDefinitionsService alertDefinitionsService,
            INavigationService navigationService,
            ILogger logger) : base(navigationService, logger)
        {
            _alertDefinitionsService = alertDefinitionsService ?? throw new ArgumentNullException(nameof(alertDefinitionsService));

            IsBusy = true;
        }
Пример #3
0
        public EditAlertDefinitionPageViewModel(
            IAlertDefinitionsService alertDefinitionsService,
            INavigationService navigationService,
            ILogger logger) : base(navigationService, logger)
        {
            _alertDefinitionsService = alertDefinitionsService ?? throw new ArgumentNullException(nameof(alertDefinitionsService));
            _alertDefinition         = new AlertDefinition
            {
                RootCriteria = new AlertCriteria
                {
                    Type     = CriteriaType.Composite,
                    Operator = CriteriaOperator.And
                }
            };

            Title = "Create Alert Definition";
        }
Пример #4
0
 public EvaluateAlertFunction(IAlertDefinitionsService alertDetDefinitionsService)
 {
     _alertDetDefinitionsService = alertDetDefinitionsService;
 }