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); } }
public DBWorker(CustomQueue <CustomStorage> queue) { _hashQueue = queue; }
public CalcHashWorker(CustomQueue <string> queue) { _fileinfo = queue; }
public FileScannerWorker() { _autoResetEvent = new AutoResetEvent(true); FileQueue = new CustomQueue <string>(_autoResetEvent); }