//public List <RaspberryPi> zeroList { get { return _piCollection.zeros; } }

        public HomeControlSocketHandler(IMemoryCache memoryCache,
                                        ILoggerFactory loggerFactory,
                                        IRFSwitches _rfSwitches,
                                        IPIRDevices _pirDevices,
                                        IRelayDevices _relayDevices) : base(loggerFactory)
        {
            _cache       = memoryCache;
            _logger      = loggerFactory.CreateLogger <HomeControlSocketHandler>();
            rfSwitches   = _rfSwitches.areaSwitches;
            pirDevices   = _pirDevices.detections;
            relayDevices = _relayDevices.relays;
        }
Пример #2
0
 public DetectionController(ILoggerFactory loggerFactory, IPIRDevices pirDevices, IRelayDevices relayDevices)
 {
     _logger = loggerFactory.CreateLogger <DetectionController>();
     _pirDeviceCollection = pirDevices as PIRDevices;
     _relayCollection     = relayDevices as RelayDevices;
 }