/// <summary> /// Add the collection to the output file /// </summary> /// <param name="signRequestCollection"></param> public void Write(SignRequestCollection signRequestCollection) { var node = _document.Root; foreach (var request in signRequestCollection) { AddRequest(node, request); } }
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); }