aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Data
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-03-01 11:05:02 -0800
committerRob Mensching <rob@robmensching.com>2019-03-01 11:08:36 -0800
commite9fea339e473e6dcc32e34e995429b41cabb6c22 (patch)
treecad7210c4adcfa8f11b460eaadb1178c52d28e32 /src/WixToolset.Extensibility/Data
parent543ce1ac2e203ac0dc8fa3227bb2c40c12e6e17e (diff)
downloadwix-e9fea339e473e6dcc32e34e995429b41cabb6c22.tar.gz
wix-e9fea339e473e6dcc32e34e995429b41cabb6c22.tar.bz2
wix-e9fea339e473e6dcc32e34e995429b41cabb6c22.zip
Expose only abstracts and enums from WixToolset.Extensibility
Diffstat (limited to 'src/WixToolset.Extensibility/Data')
-rw-r--r--src/WixToolset.Extensibility/Data/BindPath.cs59
-rw-r--r--src/WixToolset.Extensibility/Data/BindResult.cs13
-rw-r--r--src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs (renamed from src/WixToolset.Extensibility/Data/ComponentKeyPath.cs)20
-rw-r--r--src/WixToolset.Extensibility/Data/IBindFileWithPath.cs11
-rw-r--r--src/WixToolset.Extensibility/Data/IBindPath.cs (renamed from src/WixToolset.Extensibility/Data/BindFileWithPath.cs)18
-rw-r--r--src/WixToolset.Extensibility/Data/IBindResult.cs13
-rw-r--r--src/WixToolset.Extensibility/Data/IComponentKeyPath.cs13
-rw-r--r--src/WixToolset.Extensibility/Data/IDecompileResult.cs (renamed from src/WixToolset.Extensibility/Data/DecompileResult.cs)6
-rw-r--r--src/WixToolset.Extensibility/Data/ILibraryContext.cs4
-rw-r--r--src/WixToolset.Extensibility/Data/IResolveContext.cs4
-rw-r--r--src/WixToolset.Extensibility/Data/IResolveFileResult.cs13
-rw-r--r--src/WixToolset.Extensibility/Data/IResolveResult.cs18
-rw-r--r--src/WixToolset.Extensibility/Data/IResolvedCabinet.cs11
-rw-r--r--src/WixToolset.Extensibility/Data/ResolveFileResult.cs13
-rw-r--r--src/WixToolset.Extensibility/Data/ResolveResult.cs18
-rw-r--r--src/WixToolset.Extensibility/Data/ResolvedCabinet.cs20
16 files changed, 97 insertions, 157 deletions
diff --git a/src/WixToolset.Extensibility/Data/BindPath.cs b/src/WixToolset.Extensibility/Data/BindPath.cs
deleted file mode 100644
index 3b0b73bb..00000000
--- a/src/WixToolset.Extensibility/Data/BindPath.cs
+++ /dev/null
@@ -1,59 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System;
6
7 /// <summary>
8 /// Bind path representation.
9 /// </summary>
10 public class BindPath
11 {
12 /// <summary>
13 /// Creates an unnamed bind path.
14 /// </summary>
15 /// <param name="path">Path for the bind path.</param>
16 public BindPath(string path) : this(String.Empty, path, BindStage.Normal)
17 {
18 }
19
20 /// <summary>
21 /// Creates a named bind path.
22 /// </summary>
23 /// <param name="name">Name of the bind path.</param>
24 /// <param name="path">Path for the bind path.</param>
25 /// <param name="stage">Stage for the bind path.</param>
26 public BindPath(string name, string path, BindStage stage = BindStage.Normal)
27 {
28 this.Name = name;
29 this.Path = path;
30 this.Stage = stage;
31 }
32
33 /// <summary>
34 /// Name of the bind path or String.Empty if the path is unnamed.
35 /// </summary>
36 public string Name { get; set; }
37
38 /// <summary>
39 /// Path for the bind path.
40 /// </summary>
41 public string Path { get; set; }
42
43 /// <summary>
44 /// Stage for the bind path.
45 /// </summary>
46 public BindStage Stage { get; set; }
47
48 /// <summary>
49 /// Parses a normal bind path from its string representation
50 /// </summary>
51 /// <param name="bindPath">String representation of bind path that looks like: [name=]path</param>
52 /// <returns>Parsed normal bind path.</returns>
53 public static BindPath Parse(string bindPath)
54 {
55 string[] namedPath = bindPath.Split(new char[] { '=' }, 2);
56 return (1 == namedPath.Length) ? new BindPath(namedPath[0]) : new BindPath(namedPath[0], namedPath[1]);
57 }
58 }
59}
diff --git a/src/WixToolset.Extensibility/Data/BindResult.cs b/src/WixToolset.Extensibility/Data/BindResult.cs
deleted file mode 100644
index e467d269..00000000
--- a/src/WixToolset.Extensibility/Data/BindResult.cs
+++ /dev/null
@@ -1,13 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6
7 public class BindResult
8 {
9 public IEnumerable<IFileTransfer> FileTransfers { get; set; }
10
11 public IEnumerable<ITrackedFile> TrackedFiles { get; set; }
12 }
13}
diff --git a/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs b/src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs
index 112f562c..58bbb0cf 100644
--- a/src/WixToolset.Extensibility/Data/ComponentKeyPath.cs
+++ b/src/WixToolset.Extensibility/Data/ComponentKeyPathType.cs
@@ -1,4 +1,4 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolset.Extensibility.Data 3namespace WixToolset.Extensibility.Data
4{ 4{
@@ -34,22 +34,4 @@ namespace WixToolset.Extensibility.Data
34 /// </summary> 34 /// </summary>
35 RegistryFormatted 35 RegistryFormatted
36 } 36 }
37
38 public class ComponentKeyPath
39 {
40 /// <summary>
41 /// Identifier of the resource to be a key path.
42 /// </summary>
43 public string Id { get; set; }
44
45 /// <summary>
46 /// Indicates whether the key path was explicitly set for this resource.
47 /// </summary>
48 public bool Explicit { get; set; }
49
50 /// <summary>
51 /// Type of resource to be the key path.
52 /// </summary>
53 public ComponentKeyPathType Type { get; set; }
54 }
55} 37}
diff --git a/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs b/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs
new file mode 100644
index 00000000..ec78a1a0
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IBindFileWithPath.cs
@@ -0,0 +1,11 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 public interface IBindFileWithPath
6 {
7 string Id { get; set; }
8
9 string Path { get; set; }
10 }
11}
diff --git a/src/WixToolset.Extensibility/Data/BindFileWithPath.cs b/src/WixToolset.Extensibility/Data/IBindPath.cs
index d65ae1ba..5784a0e0 100644
--- a/src/WixToolset.Extensibility/Data/BindFileWithPath.cs
+++ b/src/WixToolset.Extensibility/Data/IBindPath.cs
@@ -2,19 +2,21 @@
2 2
3namespace WixToolset.Extensibility.Data 3namespace WixToolset.Extensibility.Data
4{ 4{
5 /// <summary> 5 public interface IBindPath
6 /// Bind file with its path.
7 /// </summary>
8 public class BindFileWithPath
9 { 6 {
10 /// <summary> 7 /// <summary>
11 /// Gets or sets the identifier of the file with this path. 8 /// Name of the bind path or String.Empty if the path is unnamed.
12 /// </summary> 9 /// </summary>
13 public string Id { get; set; } 10 string Name { get; set; }
14 11
15 /// <summary> 12 /// <summary>
16 /// Gets or sets the file path. 13 /// Path for the bind path.
17 /// </summary> 14 /// </summary>
18 public string Path { get; set; } 15 string Path { get; set; }
16
17 /// <summary>
18 /// Stage for the bind path.
19 /// </summary>
20 BindStage Stage { get; set; }
19 } 21 }
20} 22}
diff --git a/src/WixToolset.Extensibility/Data/IBindResult.cs b/src/WixToolset.Extensibility/Data/IBindResult.cs
new file mode 100644
index 00000000..d35e7628
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IBindResult.cs
@@ -0,0 +1,13 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6
7 public interface IBindResult
8 {
9 IEnumerable<IFileTransfer> FileTransfers { get; set; }
10
11 IEnumerable<ITrackedFile> TrackedFiles { get; set; }
12 }
13}
diff --git a/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs b/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs
new file mode 100644
index 00000000..ba660b45
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IComponentKeyPath.cs
@@ -0,0 +1,13 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 public interface IComponentKeyPath
6 {
7 bool Explicit { get; set; }
8
9 string Id { get; set; }
10
11 ComponentKeyPathType Type { get; set; }
12 }
13}
diff --git a/src/WixToolset.Extensibility/Data/DecompileResult.cs b/src/WixToolset.Extensibility/Data/IDecompileResult.cs
index 27706b2c..ea993cb2 100644
--- a/src/WixToolset.Extensibility/Data/DecompileResult.cs
+++ b/src/WixToolset.Extensibility/Data/IDecompileResult.cs
@@ -5,10 +5,10 @@ namespace WixToolset.Extensibility.Data
5 using System.Collections.Generic; 5 using System.Collections.Generic;
6 using System.Xml.Linq; 6 using System.Xml.Linq;
7 7
8 public class DecompileResult 8 public interface IDecompileResult
9 { 9 {
10 public XDocument Document { get; set; } 10 XDocument Document { get; set; }
11 11
12 public IEnumerable<string> ExtractedFilePaths { get; set; } 12 IEnumerable<string> ExtractedFilePaths { get; set; }
13 } 13 }
14} 14}
diff --git a/src/WixToolset.Extensibility/Data/ILibraryContext.cs b/src/WixToolset.Extensibility/Data/ILibraryContext.cs
index 08b4ed26..9b65ebfd 100644
--- a/src/WixToolset.Extensibility/Data/ILibraryContext.cs
+++ b/src/WixToolset.Extensibility/Data/ILibraryContext.cs
@@ -1,4 +1,4 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolset.Extensibility.Data 3namespace WixToolset.Extensibility.Data
4{ 4{
@@ -12,7 +12,7 @@ namespace WixToolset.Extensibility.Data
12 12
13 bool BindFiles { get; set; } 13 bool BindFiles { get; set; }
14 14
15 IEnumerable<BindPath> BindPaths { get; set; } 15 IEnumerable<IBindPath> BindPaths { get; set; }
16 16
17 IEnumerable<ILibrarianExtension> Extensions { get; set; } 17 IEnumerable<ILibrarianExtension> Extensions { get; set; }
18 18
diff --git a/src/WixToolset.Extensibility/Data/IResolveContext.cs b/src/WixToolset.Extensibility/Data/IResolveContext.cs
index 0e12a534..68a50268 100644
--- a/src/WixToolset.Extensibility/Data/IResolveContext.cs
+++ b/src/WixToolset.Extensibility/Data/IResolveContext.cs
@@ -1,4 +1,4 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolset.Extensibility.Data 3namespace WixToolset.Extensibility.Data
4{ 4{
@@ -11,7 +11,7 @@ namespace WixToolset.Extensibility.Data
11 { 11 {
12 IServiceProvider ServiceProvider { get; } 12 IServiceProvider ServiceProvider { get; }
13 13
14 IEnumerable<BindPath> BindPaths { get; set; } 14 IEnumerable<IBindPath> BindPaths { get; set; }
15 15
16 IEnumerable<IResolverExtension> Extensions { get; set; } 16 IEnumerable<IResolverExtension> Extensions { get; set; }
17 17
diff --git a/src/WixToolset.Extensibility/Data/IResolveFileResult.cs b/src/WixToolset.Extensibility/Data/IResolveFileResult.cs
new file mode 100644
index 00000000..bf0af72e
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IResolveFileResult.cs
@@ -0,0 +1,13 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6
7 public interface IResolveFileResult
8 {
9 IEnumerable<string> CheckedPaths { get; set; }
10
11 string Path { get; set; }
12 }
13}
diff --git a/src/WixToolset.Extensibility/Data/IResolveResult.cs b/src/WixToolset.Extensibility/Data/IResolveResult.cs
new file mode 100644
index 00000000..87b9c573
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IResolveResult.cs
@@ -0,0 +1,18 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6 using WixToolset.Data;
7
8 public interface IResolveResult
9 {
10 int Codepage { get; set; }
11
12 IEnumerable<IDelayedField> DelayedFields { get; set; }
13
14 IEnumerable<IExpectedExtractFile> ExpectedEmbeddedFiles { get; set; }
15
16 Intermediate IntermediateRepresentation { get; set; }
17 }
18}
diff --git a/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs b/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs
new file mode 100644
index 00000000..c94ff8db
--- /dev/null
+++ b/src/WixToolset.Extensibility/Data/IResolvedCabinet.cs
@@ -0,0 +1,11 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 public interface IResolvedCabinet
6 {
7 CabinetBuildOption BuildOption { get; set; }
8
9 string Path { get; set; }
10 }
11}
diff --git a/src/WixToolset.Extensibility/Data/ResolveFileResult.cs b/src/WixToolset.Extensibility/Data/ResolveFileResult.cs
deleted file mode 100644
index 5ac7c426..00000000
--- a/src/WixToolset.Extensibility/Data/ResolveFileResult.cs
+++ /dev/null
@@ -1,13 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6
7 public class ResolveFileResult
8 {
9 public string Path { get; set; }
10
11 public IEnumerable<string> CheckedPaths { get; set; }
12 }
13} \ No newline at end of file
diff --git a/src/WixToolset.Extensibility/Data/ResolveResult.cs b/src/WixToolset.Extensibility/Data/ResolveResult.cs
deleted file mode 100644
index cdc9cfcc..00000000
--- a/src/WixToolset.Extensibility/Data/ResolveResult.cs
+++ /dev/null
@@ -1,18 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 using System.Collections.Generic;
6 using WixToolset.Data;
7
8 public class ResolveResult
9 {
10 public int Codepage { get; set; }
11
12 public IEnumerable<IDelayedField> DelayedFields { get; set; }
13
14 public IEnumerable<IExpectedExtractFile> ExpectedEmbeddedFiles { get; set; }
15
16 public Intermediate IntermediateRepresentation { get; set; }
17 }
18} \ No newline at end of file
diff --git a/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs b/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs
deleted file mode 100644
index 047b7448..00000000
--- a/src/WixToolset.Extensibility/Data/ResolvedCabinet.cs
+++ /dev/null
@@ -1,20 +0,0 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensibility.Data
4{
5 /// <summary>
6 /// Data returned from build file manager ResolveCabinet callback.
7 /// </summary>
8 public class ResolvedCabinet
9 {
10 /// <summary>
11 /// Gets or sets the build option for the resolved cabinet.
12 /// </summary>
13 public CabinetBuildOption BuildOption { get; set; }
14
15 /// <summary>
16 /// Gets or sets the path for the resolved cabinet.
17 /// </summary>
18 public string Path { get; set; }
19 }
20}