/// <summary> /// Initializes a new instance of the <see cref="Engine" /> class /// </summary> /// <param name="xmlDatabasePath">XML database path</param> /// <param name="reporter">Reporter to use</param> /// <param name="basePath">Base path</param> /// <param name="excludePattern">Exclude pattern</param> /// <param name="matchPattern">Match pattern</param> /// <param name="matchType">Match type</param> /// <param name="pathType">Path type</param> /// <param name="checksumType">Checksum type</param> public Engine( string xmlDatabasePath, IEngineReporter reporter, string basePath, string excludePattern = "", string matchPattern = "*", MatchType matchType = MatchType.Wildcard, PathType pathType = PathType.RelativePath, ChecksumType checksumType = ChecksumType.MD5) { _xmlDatabasePath = xmlDatabasePath; _reporter = reporter; _basePath = basePath; _excludePattern = excludePattern; _matchPattern = matchPattern; _matchType = matchType; _pathType = pathType; _checksumType = checksumType; _db = Database.FromFile(_xmlDatabasePath, _basePath, _pathType); }