/// <summary> /// Constructs a new instance of Searcher. /// </summary> /// <param name="files"> /// The list of files to search. /// </param> /// <param name="matcher"> /// The <see cref="IFileMatcher"/> to obtain <see cref="FileMatch"/>es from. /// </param> /// <param name="reader"> /// The <see cref="ILineReader"/> used to read lines from the file. /// </param> /// <exception cref="ArgumentNullException"> /// If <paramref name="files"/>, <paramref name="matcher"/>, or /// <paramref name="reader"/> are null. /// </exception> public Searcher(IEnumerable<string> files, IFileMatcher matcher, ILineReader reader) { if (files == null) { throw new ArgumentNullException("files"); } if (matcher == null) { throw new ArgumentNullException("matcher"); } if (reader == null) { throw new ArgumentNullException("reader"); } _matches = new List<FileMatch>(); _files = files; _matcher = matcher; _reader = reader; }
public FubuMvcApplicationFileWatcher(IApplicationObserver observer, IFileMatcher matcher) { _observer = observer; _matcher = matcher; }