Esempio n. 1
0
 public void AddRootFile(RootFile rootFile)
 {
     _rootFiles.Add(new XElement(Namespace + "rootfile",
         new XAttribute("full-path", rootFile.FullPath),
         new XAttribute("media-type", rootFile.MediaType)
      ));
 }
Esempio n. 2
0
 public void AddRootFile(RootFile rootFile)
 {
     _rootFiles.Add(new XElement(Namespace + "rootfile",
                                 new XAttribute("full-path", rootFile.FullPath),
                                 new XAttribute("media-type", rootFile.MediaType)
                                 ));
 }
Esempio n. 3
0
 public void RemoveRootFile(RootFile rootFile)
 {
     _rootFiles.Descendants().SingleOrDefault(p => p.Name == "rootfile" && p.Attribute("full-path")?.Value == rootFile.FullPath
         && p.Attribute("media-type")?.Value == rootFile.MediaType)?.Remove();
 }
Esempio n. 4
0
 public void RemoveRootFile(RootFile rootFile)
 {
     _rootFiles.Descendants().SingleOrDefault(p => p.Name == "rootfile" && p.Attribute("full-path")?.Value == rootFile.FullPath &&
                                              p.Attribute("media-type")?.Value == rootFile.MediaType)?.Remove();
 }