aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/BundleInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Mba.Core/BundleInfo.cs')
-rw-r--r--src/WixToolset.Mba.Core/BundleInfo.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/BundleInfo.cs b/src/WixToolset.Mba.Core/BundleInfo.cs
index e1a56878..3d5d535d 100644
--- a/src/WixToolset.Mba.Core/BundleInfo.cs
+++ b/src/WixToolset.Mba.Core/BundleInfo.cs
@@ -8,11 +8,21 @@ namespace WixToolset.Mba.Core
8 using System.Xml; 8 using System.Xml;
9 using System.Xml.XPath; 9 using System.Xml.XPath;
10 10
11 /// <summary>
12 /// Default implementation of <see cref="IBundleInfo"/>.
13 /// </summary>
11 public class BundleInfo : IBundleInfo 14 public class BundleInfo : IBundleInfo
12 { 15 {
16 /// <inheritdoc/>
13 public bool PerMachine { get; internal set; } 17 public bool PerMachine { get; internal set; }
18
19 /// <inheritdoc/>
14 public string Name { get; internal set; } 20 public string Name { get; internal set; }
21
22 /// <inheritdoc/>
15 public string LogVariable { get; internal set; } 23 public string LogVariable { get; internal set; }
24
25 /// <inheritdoc/>
16 public IDictionary<string, IPackageInfo> Packages { get; internal set; } 26 public IDictionary<string, IPackageInfo> Packages { get; internal set; }
17 27
18 internal BundleInfo() 28 internal BundleInfo()
@@ -20,6 +30,7 @@ namespace WixToolset.Mba.Core
20 this.Packages = new Dictionary<string, IPackageInfo>(); 30 this.Packages = new Dictionary<string, IPackageInfo>();
21 } 31 }
22 32
33 /// <inheritdoc/>
23 public IPackageInfo AddRelatedBundleAsPackage(DetectRelatedBundleEventArgs e) 34 public IPackageInfo AddRelatedBundleAsPackage(DetectRelatedBundleEventArgs e)
24 { 35 {
25 var package = PackageInfo.GetRelatedBundleAsPackage(e.ProductCode, e.RelationType, e.PerMachine, e.Version); 36 var package = PackageInfo.GetRelatedBundleAsPackage(e.ProductCode, e.RelationType, e.PerMachine, e.Version);
@@ -27,6 +38,11 @@ namespace WixToolset.Mba.Core
27 return package; 38 return package;
28 } 39 }
29 40
41 /// <summary>
42 /// Parses BA manifest from the given stream.
43 /// </summary>
44 /// <param name="stream"></param>
45 /// <returns></returns>
30 public static IBundleInfo ParseBundleFromStream(Stream stream) 46 public static IBundleInfo ParseBundleFromStream(Stream stream)
31 { 47 {
32 XPathDocument manifest = new XPathDocument(stream); 48 XPathDocument manifest = new XPathDocument(stream);
@@ -34,6 +50,11 @@ namespace WixToolset.Mba.Core
34 return ParseBundleFromXml(root); 50 return ParseBundleFromXml(root);
35 } 51 }
36 52
53 /// <summary>
54 /// Parses BA manifest from the given <see cref="XPathNavigator"/>.
55 /// </summary>
56 /// <param name="root">The root of the BA manifest.</param>
57 /// <returns></returns>
37 public static IBundleInfo ParseBundleFromXml(XPathNavigator root) 58 public static IBundleInfo ParseBundleFromXml(XPathNavigator root)
38 { 59 {
39 BundleInfo bundle = new BundleInfo(); 60 BundleInfo bundle = new BundleInfo();