Ejemplo n.º 1
0
 public DeanonDumper(IDeanonDbWorker neo4JWorker, IDeanonSocNetworkWorker vkWorker, Cache cache)
 {
     _neo4JWorker = neo4JWorker;
     _neo4JWorker.Connect();
     _vkWorker = vkWorker;
     _dbcache  = cache;
 }
Ejemplo n.º 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
     }
 }
Ejemplo n.º 3
0
 public DbGraphAnalyzer(IDeanonDbWorker neo4J)
 {
     _neo4J = neo4J;
 }
Ejemplo n.º 4
0
 private static void InitDBAndVK()
 {
     _db = InitDb();
     _sn = InitVk();
 }