public void Start() { Debug.Assert(!string.IsNullOrEmpty(FileName), "Filename not specified"); Debug.Assert(Logger != null, "No logger has been registered, this is required before starting a provider"); lock (pendingQueue) { Log.Trace(string.Format(CultureInfo.InvariantCulture, "Starting of file-monitor upon {0}", FileName)); } Worker.RunWorkerAsync(); PurgeWorker.RunWorkerAsync(); }
public void Close() { Worker.CancelAsync(); PurgeWorker.CancelAsync(); }