public static Searcher GetSearcher() { SearcherFactory factory = new SearcherFactory { FileNamePattern = "*.xml", Path = ExecutionDirectory.FindExecutionDirectory(), Recursive = true, Hidden = false, LinePattern = XmlPattern, System = false, LinesNotMatching = false, FilesNotMatching = false }; return factory.ConstructSearcher(); }
public static Searcher GetTenDaysSearcher() { SearcherFactory factory = new SearcherFactory { FileNamePattern = "*.xml", Path = ExecutionDirectory.FindExecutionDirectory(), Recursive = true, Hidden = false, LinePattern = XmlPattern, System = false, LinesNotMatching = false, FilesNotMatching = false, MinimumFileDate = DateTime.Now - new TimeSpan(10, 0, 0, 0), MaximumFileDate = DateTime.Now }; return factory.ConstructSearcher(); }