예제 #1
0
        public void Read(StorageElementCollection.AddElement add, StorageHierarchiesBuilder builder)
        {
            var context = TryCreateNamedHierarchyAndContext(add, builder);

            ReadFiltersElement(add.Filters, context);
            ReadChildLocations(add, context);
        }
예제 #2
0
        private Context TryCreateNamedHierarchyAndContext(StorageElementCollection.AddElement add, StorageHierarchiesBuilder builder)
        {
            var watch = builder.Errors.Watch() + Errors.Watch();

            VerifyAbsolutePath(add.Path)?.SetLocation(add.ElementInformation);
            if (watch.HasNewErrors)
            {
                return(default);