Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public void IncludeSection(params string[] sections)
 {
     IncludeMode = true;
     Include.AddRange(sections);
 }