Esempio n. 1
0
 public PiController(
     IRaspberryPiService piService,
     ILoggerFactory logFactory,
     IMapper mapper)
 {
     this._piService = piService;
     this._logger    = logFactory.CreateLogger <PiController>();
     this._mapper    = mapper;
 }
 public WaterController(IRaspberryPiService raspberryPiService, IHostingEnvironment environment)
 {
     _raspberryPiService = raspberryPiService;
     OnRas = environment.IsProduction();
 }