Esempio n. 1
0
 public ClientMonitoringService(IHubContext <MonitoringDataHub> hubContext,
                                ISensorsInterface sensorsInterface, ISignalRSessionsManager sessionsManager)
 {
     _monitoringDataHubContext = hubContext;
     _sessionsManager          = sessionsManager;
     _sensorsInterface         = sensorsInterface;
     //StartTimer();
 }
        public TreeViewManager(IUserManager userManager, ISensorsInterface sensorsInterface)
        {
            _treeModels       = new ConcurrentDictionary <string, TreeViewModel>();
            _sensorsInterface = sensorsInterface;

            _userManager = userManager;
            _userManager.UpdateUserEvent += UpdateUserEventHandler;
        }
 public HomeController(ISensorsInterface sensorsInterface, ITreeViewManager treeManager,
                       IUserManager userManager, IHistoryProcessorFactory factory, IProductManager productManager)
 {
     _sensorsInterface        = sensorsInterface;
     _treeManager             = treeManager;
     _userManager             = userManager;
     _productManager          = productManager;
     _historyProcessorFactory = factory;
 }
Esempio n. 4
0
 public OutdatedSensorService(IDatabaseAdapter databaseAdapter, IProductManager productManager, IConfigurationProvider configurationProvider,
                              ISensorsInterface sensorsInterface, IValuesCache cache,
                              ILogger <OutdatedSensorService> logger) : base(databaseAdapter, productManager)
 {
     _configurationProvider = configurationProvider;
     _cache            = cache;
     _sensorsInterface = sensorsInterface;
     _logger           = logger;
     _lastChecked      = DateTime.MinValue;
 }
Esempio n. 5
0
 public SensorsExpirationService(IValuesCache valuesCache, IProductManager productManager,
                                 ISensorsInterface sensorsInterface, IMonitoringUpdatesReceiver updatesReceiver,
                                 ILogger <SensorsExpirationService> logger)
 {
     _cache            = valuesCache;
     _productManager   = productManager;
     _sensorsInterface = sensorsInterface;
     _updatesReceiver  = updatesReceiver;
     _logger           = logger;
 }