예제 #1
0
        /// <summary>
        /// Add a child type.
        /// </summary>
        /// <param name="item"></param>
        public void AddChild(SignRequestItem item)
        {
            if (!CanContainChildren)
            {
                throw new InvalidOperationException("Cannot add a child to items which do not allow nested files");
            }

            _children.Add(item);
        }
예제 #2
0
        private SignRequestCollection Read()
        {
            var doc = XDocument.Load(_reader);

            var collection = new SignRequestCollection
            {
                BasePath = _manifestBasePath
            };

            foreach (var element in doc.Root.Elements())
            {
                collection.Add(ReadElement(element));
            }

            return(collection);
        }