示例#1
0
 public AquaLogicProtocolService(IAqualogicStream stream, PoolStatusStore store,
                                 ILogger <AquaLogicProtocolService> log, AqualogicMessageWriter writer,
                                 StatusUpdateService updateProcessor, CommandService commandService,
                                 SwitchService switchService)
 {
     _log             = log;
     _updateProcessor = updateProcessor;
     _commandService  = commandService;
     _stream          = stream;
 }
 public StatusUpdateService(
     ILogger <StatusUpdateService> log,
     MenuService menuService,
     SensorService sensorService,
     SettingService settingService,
     SwitchService switchService,
     PoolStatusStore store)
 {
     _log = log;
     this._switchService = switchService;
     _processors         = new IUpdateProcessor[]
     {
         menuService,
         sensorService,
         settingService
     };
     _store = store;
 }