diff options
Diffstat (limited to 'src/wixext/Tuples')
-rw-r--r-- | src/wixext/Tuples/BalTupleDefinitions.cs | 15 | ||||
-rw-r--r-- | src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs | 47 |
2 files changed, 62 insertions, 0 deletions
diff --git a/src/wixext/Tuples/BalTupleDefinitions.cs b/src/wixext/Tuples/BalTupleDefinitions.cs index 676db9f6..48199f95 100644 --- a/src/wixext/Tuples/BalTupleDefinitions.cs +++ b/src/wixext/Tuples/BalTupleDefinitions.cs | |||
@@ -4,9 +4,11 @@ namespace WixToolset.Bal | |||
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | using WixToolset.Data; | 6 | using WixToolset.Data; |
7 | using WixToolset.Data.Burn; | ||
7 | 8 | ||
8 | public enum BalTupleDefinitionType | 9 | public enum BalTupleDefinitionType |
9 | { | 10 | { |
11 | WixBalBAFactoryAssembly, | ||
10 | WixBalBAFunctions, | 12 | WixBalBAFunctions, |
11 | WixBalCondition, | 13 | WixBalCondition, |
12 | WixMbaPrereqInformation, | 14 | WixMbaPrereqInformation, |
@@ -32,6 +34,9 @@ namespace WixToolset.Bal | |||
32 | { | 34 | { |
33 | switch (type) | 35 | switch (type) |
34 | { | 36 | { |
37 | case BalTupleDefinitionType.WixBalBAFactoryAssembly: | ||
38 | return BalTupleDefinitions.WixBalBAFactoryAssembly; | ||
39 | |||
35 | case BalTupleDefinitionType.WixBalBAFunctions: | 40 | case BalTupleDefinitionType.WixBalBAFunctions: |
36 | return BalTupleDefinitions.WixBalBAFunctions; | 41 | return BalTupleDefinitions.WixBalBAFunctions; |
37 | 42 | ||
@@ -51,5 +56,15 @@ namespace WixToolset.Bal | |||
51 | throw new ArgumentOutOfRangeException(nameof(type)); | 56 | throw new ArgumentOutOfRangeException(nameof(type)); |
52 | } | 57 | } |
53 | } | 58 | } |
59 | |||
60 | static BalTupleDefinitions() | ||
61 | { | ||
62 | WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
63 | WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
64 | WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
65 | WixMbaPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
66 | WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
67 | WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataTupleDefinitionTag); | ||
68 | } | ||
54 | } | 69 | } |
55 | } | 70 | } |
diff --git a/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs b/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs new file mode 100644 index 00000000..e33ea562 --- /dev/null +++ b/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs | |||
@@ -0,0 +1,47 @@ | |||
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 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Tuples; | ||
7 | |||
8 | public static partial class BalTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition WixBalBAFactoryAssembly = new IntermediateTupleDefinition( | ||
11 | BalTupleDefinitionType.WixBalBAFactoryAssembly.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalBAFactoryTupleFields.PayloadId), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(WixBalBAFactoryAssemblyTuple)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Tuples | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixBalBAFactoryTupleFields | ||
25 | { | ||
26 | PayloadId, | ||
27 | } | ||
28 | |||
29 | public class WixBalBAFactoryAssemblyTuple : IntermediateTuple | ||
30 | { | ||
31 | public WixBalBAFactoryAssemblyTuple() : base(BalTupleDefinitions.WixBalBAFactoryAssembly, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixBalBAFactoryAssemblyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalTupleDefinitions.WixBalBAFactoryAssembly, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixBalBAFactoryTupleFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string PayloadId | ||
42 | { | ||
43 | get => this.Fields[(int)WixBalBAFactoryTupleFields.PayloadId].AsString(); | ||
44 | set => this.Set((int)WixBalBAFactoryTupleFields.PayloadId, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||