public DatabaseCore(IDatabaseSettings dbSettings) { _databaseSettings = dbSettings; _environmentDatabase = LevelDBManager.GetEnvitonmentDatabaseInstance(_databaseSettings.GetPathToEnvironmentDatabase()); _sensorsDatabases = new TimeDatabaseDictionary(_environmentDatabase, dbSettings); OpenAllExistingSensorDatabases(); }
public TimeDatabaseDictionary(IEnvironmentDatabase environmentDatabase, IDatabaseSettings dbSettings) { _databaseSettings = dbSettings; _environmentDatabase = environmentDatabase; _sensorsDatabases = new SortedSet <ISensorsDatabase>(new SensorDatabaseComparer()); }