internal void Start() { if (runThread != null) return; // thread is running, so do nothing fileMonitor = new AsynchronousFileMonitor(filePath, callback); runThread = new Thread(new ThreadStart(fileMonitor.DoMonitoring)); runThread.Start(); }
internal void Start() { if (runThread != null) { return; // thread is running, so do nothing } fileMonitor = new AsynchronousFileMonitor(filePath, callback); runThread = new Thread(new ThreadStart(fileMonitor.DoMonitoring)); runThread.Start(); }
public void Stop() { fileMonitor.StopMonitoring(); fileMonitor = null; runThread = null; }