Example #1
0
 public StorageObserver(ISettingsService<AlertSettingsDto> settings, IEventService eventService, ISmtpClient client, IFile file, ILogger logger, IHardwareService hardwareService)
     : base(logger)
 {
     SettingsService = settings;
     EventService = eventService;
     SmtpClient = client;
     ConfigurationReader = new ConfigurationReader(SettingsService, AlertTypeDto.Hdd);
     Notifier = new Notifier(ConfigurationReader.Read().Intervals.CriticalNotification, eventService, client, file, logger, AlertTypeDto.Hdd);
     Hardware = hardwareService;
 }
Example #2
0
 public DashboardController(IHardwareService service,
                            IThirdPartyService api,
                            ILogger logger,
                            ISettingsService<NzbGetSettingsDto> nzbGetSettingsService,
                            ISettingsService<SabNzbdSettingsDto> sabSettingsService,
                            ISettingsService<NzbDashSettingsDto> nzbDashServiceSettings)
     : base(logger)
 {
     Api = api;
     Service = service;
     NzbGet = nzbGetSettingsService;
     Sab = sabSettingsService;
     NzbDashServiceSettings = nzbDashServiceSettings;
 }
 public AlertSettingsController(ILogger logger, ISettingsService<AlertSettingsDto> alertSettings, IHardwareService hardware)
     : base(logger)
 {
     AlertSettingsService = alertSettings;
     HardwareService = hardware;
 }
 public void SetUp()
 {
     Service = new WindowsHardwareService();
 }
 public NetworkPerformanceCounter(IHardwareService hardwareService, int nicId)
 {
     Service = hardwareService;
     NicId = nicId;
 }
Example #6
0
 public StoragePerformanceCounter(IHardwareService hardwareService, int driveId)
 {
     Service = hardwareService;
     DriveId = driveId;
 }
Example #7
0
 public DatabaseServiceModule(IHardwareService hardwareService, IOrganizationService organizationService, ILoginUserService loginUserService)
 {
     _hardwareService     = hardwareService;
     _organizationService = organizationService;
     _loginUserService    = loginUserService;
 }
 public HardwareController(IHardwareService hardwareService)
 {
     _hardwareService = hardwareService;
 }
 public void SetUp()
 {
     Service = new WindowsHardwareService();
 }
 public StoragePerformanceCounter(IHardwareService hardwareService, int driveId)
 {
     Service = hardwareService;
     DriveId = driveId;
 }
Example #11
0
 public AlertSettingsController(ILogger logger, ISettingsService <AlertSettingsDto> alertSettings, IHardwareService hardware) : base(logger)
 {
     AlertSettingsService = alertSettings;
     HardwareService      = hardware;
 }
Example #12
0
 public UsersController(IUserService userService, IHardwareService hardwareService)
 {
     this.userService     = userService;
     this.hardwareService = hardwareService;
 }
Example #13
0
        public HistoryEventAlarmTrendViewModel(IEventAggregator eventAggregator, IOrganizationService organizationService, IDatabaseComponent databaseComponent, ICardProcess cardProcess, IHardwareService hardwareService)
        {
            _eventAggregator     = eventAggregator;
            _organizationService = organizationService;
            _databaseComponent   = databaseComponent;
            _cardProcess         = cardProcess;
            _hardwareService     = hardwareService;

            Initialization = InitializeAsync();
        }