Exemple #1
0
 //Launch all saves method
 public void saveM(Work work, ManualResetEvent ProcessVerif)
 {
     mutex.WaitOne();
     mirror   = new SaveStat();
     JsonLogM = new JsonLog();
     PathAsker(work);
     FileDetector(work);
     FileCopier(ProcessVerif, work, true);
     FileCopier(ProcessVerif, work, false);
     JsonLogM.CreateLog(work, mirror);
     mutex.ReleaseMutex();
 }
Exemple #2
0
 //method launching all necessary methods
 public void saveM(Work work, ManualResetEvent ProcessVerif)
 {
     mutex.WaitOne();
     //Object that allow to get the values for the Log files
     differential = new SaveStat();
     JsonLogD     = new JsonLog();
     PathAsker(work);
     FileDetector();
     FileCopier(ProcessVerif, work, true);
     FileCopier(ProcessVerif, work, false);
     JsonLogD.CreateLog(work, differential);
     mutex.ReleaseMutex();
 }