Esempio n. 1
0
        public DataCache()
        {
            Logger.Info("Creating DataCache...");

            _providerProxy    = new CacheProviderProxy(this);
            _collectorProxy   = new CacheCollectorProxy(this);
            _portDataCache    = new ConcurrentDictionary <PortIdentifier, PortData>();
            _portConfigCache  = new ConcurrentDictionary <PortIdentifier, PortConfig>();
            _temperatureCache = new ConcurrentDictionary <Identifier, float>();
        }
Esempio n. 2
0
        public DataCache()
        {
            Logger.Info("Creating DataCache...");

            _providerProxy  = new CacheProviderProxy(this);
            _collectorProxy = new CacheCollectorProxy(this);

            _sensorValueCache  = new ConcurrentDictionary <Identifier, float>();
            _sensorConfigCache = new ConcurrentDictionary <Identifier, SensorConfig>();
            _portDataCache     = new ConcurrentDictionary <PortIdentifier, PortData>();
            _portConfigCache   = new ConcurrentDictionary <PortIdentifier, PortConfig>();
            _portSpeedCache    = new ConcurrentDictionary <PortIdentifier, byte>();
            _portColorCache    = new ConcurrentDictionary <PortIdentifier, List <LedColor> >();
            _deviceConfigCache = new ConcurrentDictionary <PortIdentifier, DeviceConfig>();
        }