/// <summary> /// Constructor for cacheDB. config is as follows: /// </summary> /// /// <para> /// [isInMemory] - Boolean : if false the DB is persisted on disk (file), and can be loaded later. Warning - performance degrade. Default is true. /// /// [filename] - String : name of the file DB should be written to. Deafult "DBcache.opcproxy.dat" /// /// [overwrite] - Boolean : if true force overwrite of DB file, false will load from file. Default false. /// </para> public cacheDB(JObject config) { _config = config.ToObject <dbConfigWrapper>().nodesDatabase; logger = LogManager.GetLogger(this.GetType().Name); init(); }
public dbConfigWrapper() { nodesDatabase = new dbConfig(); }