Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 public dbConfigWrapper()
 {
     nodesDatabase = new dbConfig();
 }