public DirectoryContainer(XElement element, ILoadingContext context) : base(element, context) { Initialize(); Path = element.Element("Path").Value; Include.AddRange(LoadRules(element.Element("Include"), context)); Exclude.AddRange(LoadRules(element.Element("Exclude"), context)); Options = new DirectoryContainerOptions(element.Element("Options"), context); }
public FileSystemSource(XElement element, ILoadingContext context) : base(element, context) { Initialize(); if (element.Element("Roots") == null) { throw new MissingElementException(element, "Roots"); } Roots.AddRange(LoadFileSystemRoots(element.Element("Roots"), context)); Include.AddRange(LoadRules(element.Element("Include"), context)); Exclude.AddRange(LoadRules(element.Element("Exclude"), context)); }
public void IncludeSection(params string[] sections) { IncludeMode = true; Include.AddRange(sections); }