File watcher calls callback when the watched file is updated with the content of the file
상속: IDisposable
예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.fileWatcher != null)
         {
             this.fileWatcher.Dispose();
             this.fileWatcher = null;
         }
     }
 }
예제 #2
0
 public FileBasedStoryFactory(string path, Func<object[]> rulesetConstructorArgsProvider = null)
 {
     this.fileWatcher = new FileWatcher(path, OnFileChanged);
     this.rulesetConstructorArgsProvider = rulesetConstructorArgsProvider ?? (() => new object[0]);
 }