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; }
public HomeController( IOptions<GeneralSettings> generalSettings, NRF24State nrf24State, MysensorsState mysensorsState, VeraSettings veraSettings) { _generalSettings = generalSettings.Value; _nrf24State = nrf24State; _mysensorsState = mysensorsState; _veraSettings = veraSettings; }
public NRF24Hub(IConnectionManager connectionManager, GeneralSettings generalSettings, NRF24State nrf24State, VeraSettings veraSettings) { _connectionManager = connectionManager; _generalSettings = generalSettings; _nrf24State = nrf24State; _veraSettings = veraSettings; _rawData = string.Empty; }
public MysensorsHub(IConnectionManager connectionManager, VeraSettings veraSettings, GeneralSettings generalSettings, MysensorsState mysensorsState) { _connectionManager = connectionManager; _veraSettings = veraSettings; _generalSettings = generalSettings; _mysensorsState = mysensorsState; _rawData = string.Empty; }
public NRF24Controller( IConnectionManager connectionManager, IOptions<GeneralSettings> generalSettings, NRF24State nrf24State, VeraSettings veraSettings) { // Make sure the serial capture process is only running once if (nrf24State.Started) return; nrf24State.Started = true; var hub = new NRF24Hub(connectionManager, generalSettings.Value, nrf24State, veraSettings); new Thread(() => { Thread.CurrentThread.IsBackground = true; hub.StartSerialClient(); }).Start(); }
public MysensorsController( IConnectionManager connectionManager, IOptions<GeneralSettings> generalSettings, VeraSettings veraSettings, MysensorsState mysensorsState) { // Make sure the process is only running once if (mysensorsState.Started) return; mysensorsState.Started = true; var hub = new MysensorsHub(connectionManager, veraSettings, generalSettings.Value, mysensorsState); new Thread(() => { Thread.CurrentThread.IsBackground = true; hub.StartTelnetClient(); }).Start(); }