/// <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);
        }
Exemple #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);
        }