Esempio n. 1
0
 public SensorHub(SensorsDBContext sensorsDBContext, IOptions <RaspberryPiSettings> raspberryPiSettings, ISensorService sensorService, ILedService ledService)
 {
     context  = sensorsDBContext;
     settings = raspberryPiSettings.Value;
     sensor   = sensorService;
     led      = ledService;
 }
 public HomeController(IOptions <RaspberryPiSettings> raspberryPiSettings, IOptions <CognitiveServicesSettings> cognitiveServicesSettings)
 {
     this.raspberryPiSettings       = raspberryPiSettings.Value;
     this.cognitiveServicesSettings = cognitiveServicesSettings.Value;
 }
 public SensorService(IOptions <RaspberryPiSettings> raspberryPiSettings)
 {
     settings = raspberryPiSettings.Value;
 }