Exemple #1
0
 public MysensorsHub(IConnectionManager connectionManager,
     VeraSettings veraSettings,
     GeneralSettings generalSettings)
 {
     _connectionManager = connectionManager;
     _veraSettings = veraSettings;
     _generalSettings = generalSettings;
 }
 public MysensorsController(
     IConnectionManager connectionManager, 
     IOptions<GeneralSettings> generalSettings, 
     VeraSettings veraSettings)
 {
     _connectionManager = connectionManager;
     _generalSettings = generalSettings.Value;
     _veraSettings = veraSettings;
 }
Exemple #3
0
 public HomeController(
     IOptions<GeneralSettings> generalSettings,
     NRF24State nrf24State,
     MysensorsState mysensorsState,
     VeraSettings veraSettings)
 {
     _generalSettings = generalSettings.Value;
     _nrf24State = nrf24State;
     _mysensorsState = mysensorsState;
     _veraSettings = veraSettings;
 }
Exemple #4
0
        public NRF24Hub(IConnectionManager connectionManager,
            GeneralSettings generalSettings,
            NRF24State nrf24State,
            VeraSettings veraSettings)
        {
            _connectionManager = connectionManager;
            _generalSettings = generalSettings;
            _nrf24State = nrf24State;
            _veraSettings = veraSettings;

            _rawData = string.Empty;
        }
Exemple #5
0
        public MysensorsHub(IConnectionManager connectionManager,
            VeraSettings veraSettings,
            GeneralSettings generalSettings,
            MysensorsState mysensorsState)
        {
            _connectionManager = connectionManager;
            _veraSettings = veraSettings;
            _generalSettings = generalSettings;
            _mysensorsState = mysensorsState;

            _rawData = string.Empty;
        }
Exemple #6
0
 public VeraSettings(IOptions<GeneralSettings> generalSettings)
 {
     _generalSettings = generalSettings.Value;
     Task.Run(() => GetSettings()).Wait();
 }
Exemple #7
0
 public VeraSettings(IOptions <GeneralSettings> generalSettings)
 {
     _generalSettings = generalSettings.Value;
     Task.Run(() => GetSettings()).Wait();
 }