Example #1
0
 public void Start()
 {
     if (_fileinfo != null)
     {
         _hashQueue = new CustomQueue <CustomStorage>(_autoResetEvent);
         _thread    = new Thread(GetHash);
         _thread.Start();
     }
     else
     {
         var log = new CustomStorage("", "FileQueue is null");
         Log.BuildLogMessage(log);
     }
 }
Example #2
0
 public DBWorker(CustomQueue <CustomStorage> queue)
 {
     _hashQueue = queue;
 }
Example #3
0
 public CalcHashWorker(CustomQueue <string> queue)
 {
     _fileinfo = queue;
 }
Example #4
0
 public FileScannerWorker()
 {
     _autoResetEvent = new AutoResetEvent(true);
     FileQueue       = new CustomQueue <string>(_autoResetEvent);
 }