protected virtual void Dispose(bool disposing) { if (disposing) { if (this.fileWatcher != null) { this.fileWatcher.Dispose(); this.fileWatcher = null; } } }
public FileBasedStoryFactory(string path, Func<object[]> rulesetConstructorArgsProvider = null) { this.fileWatcher = new FileWatcher(path, OnFileChanged); this.rulesetConstructorArgsProvider = rulesetConstructorArgsProvider ?? (() => new object[0]); }