Beispiel #1
0
 public DeanonDumper(IDeanonDbWorker neo4JWorker, IDeanonSocNetworkWorker vkWorker, Cache cache)
 {
     _neo4JWorker = neo4JWorker;
     _neo4JWorker.Connect();
     _vkWorker = vkWorker;
     _dbcache  = cache;
 }
Beispiel #2
0
 public Deanon(IDeanonDbWorker dbWorker, IDeanonSocNetworkWorker snWorker, int userId, bool continueDump)
 {
     this._userId   = userId;
     this._snWorker = snWorker;
     _dbWorker      = dbWorker;
     _cache         = new Cache();
     _dumper        = new DeanonDumper(dbWorker, snWorker, _cache);
     _analyzer      = new DbGraphAnalyzer(dbWorker);
     if (continueDump)
     {
         WarmUpCache();
     }
     else
     {
         //clear database
         _dbWorker.ClearDatabase();//0
     }
 }
Beispiel #3
0
 private static void InitDBAndVK()
 {
     _db = InitDb();
     _sn = InitVk();
 }