diff options
Diffstat (limited to 'src/wixext/Tuples')
-rw-r--r-- | src/wixext/Tuples/HttpTupleDefinitions.cs | 18 | ||||
-rw-r--r-- | src/wixext/Tuples/WixHttpUrlAceTuple.cs | 40 | ||||
-rw-r--r-- | src/wixext/Tuples/WixHttpUrlReservationTuple.cs | 46 |
3 files changed, 52 insertions, 52 deletions
diff --git a/src/wixext/Tuples/HttpTupleDefinitions.cs b/src/wixext/Tuples/HttpTupleDefinitions.cs index 11305d2a..a6deb307 100644 --- a/src/wixext/Tuples/HttpTupleDefinitions.cs +++ b/src/wixext/Tuples/HttpTupleDefinitions.cs | |||
@@ -5,19 +5,19 @@ namespace WixToolset.Http | |||
5 | using System; | 5 | using System; |
6 | using WixToolset.Data; | 6 | using WixToolset.Data; |
7 | 7 | ||
8 | public enum HttpTupleDefinitionType | 8 | public enum HttpSymbolDefinitionType |
9 | { | 9 | { |
10 | WixHttpUrlAce, | 10 | WixHttpUrlAce, |
11 | WixHttpUrlReservation, | 11 | WixHttpUrlReservation, |
12 | } | 12 | } |
13 | 13 | ||
14 | public static partial class HttpTupleDefinitions | 14 | public static partial class HttpSymbolDefinitions |
15 | { | 15 | { |
16 | public static readonly Version Version = new Version("4.0.0"); | 16 | public static readonly Version Version = new Version("4.0.0"); |
17 | 17 | ||
18 | public static IntermediateTupleDefinition ByName(string name) | 18 | public static IntermediateSymbolDefinition ByName(string name) |
19 | { | 19 | { |
20 | if (!Enum.TryParse(name, out HttpTupleDefinitionType type)) | 20 | if (!Enum.TryParse(name, out HttpSymbolDefinitionType type)) |
21 | { | 21 | { |
22 | return null; | 22 | return null; |
23 | } | 23 | } |
@@ -25,15 +25,15 @@ namespace WixToolset.Http | |||
25 | return ByType(type); | 25 | return ByType(type); |
26 | } | 26 | } |
27 | 27 | ||
28 | public static IntermediateTupleDefinition ByType(HttpTupleDefinitionType type) | 28 | public static IntermediateSymbolDefinition ByType(HttpSymbolDefinitionType type) |
29 | { | 29 | { |
30 | switch (type) | 30 | switch (type) |
31 | { | 31 | { |
32 | case HttpTupleDefinitionType.WixHttpUrlAce: | 32 | case HttpSymbolDefinitionType.WixHttpUrlAce: |
33 | return HttpTupleDefinitions.WixHttpUrlAce; | 33 | return HttpSymbolDefinitions.WixHttpUrlAce; |
34 | 34 | ||
35 | case HttpTupleDefinitionType.WixHttpUrlReservation: | 35 | case HttpSymbolDefinitionType.WixHttpUrlReservation: |
36 | return HttpTupleDefinitions.WixHttpUrlReservation; | 36 | return HttpSymbolDefinitions.WixHttpUrlReservation; |
37 | 37 | ||
38 | default: | 38 | default: |
39 | throw new ArgumentOutOfRangeException(nameof(type)); | 39 | throw new ArgumentOutOfRangeException(nameof(type)); |
diff --git a/src/wixext/Tuples/WixHttpUrlAceTuple.cs b/src/wixext/Tuples/WixHttpUrlAceTuple.cs index f605c217..1d57bd52 100644 --- a/src/wixext/Tuples/WixHttpUrlAceTuple.cs +++ b/src/wixext/Tuples/WixHttpUrlAceTuple.cs | |||
@@ -3,61 +3,61 @@ | |||
3 | namespace WixToolset.Http | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.Http.Tuples; | 6 | using WixToolset.Http.Symbols; |
7 | 7 | ||
8 | public static partial class HttpTupleDefinitions | 8 | public static partial class HttpSymbolDefinitions |
9 | { | 9 | { |
10 | public static readonly IntermediateTupleDefinition WixHttpUrlAce = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition WixHttpUrlAce = new IntermediateSymbolDefinition( |
11 | HttpTupleDefinitionType.WixHttpUrlAce.ToString(), | 11 | HttpSymbolDefinitionType.WixHttpUrlAce.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlReservationRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceSymbolFields.WixHttpUrlReservationRef), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.SecurityPrincipal), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceSymbolFields.SecurityPrincipal), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.Rights), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceSymbolFields.Rights), IntermediateFieldType.Number), |
17 | }, | 17 | }, |
18 | typeof(WixHttpUrlAceTuple)); | 18 | typeof(WixHttpUrlAceSymbol)); |
19 | } | 19 | } |
20 | } | 20 | } |
21 | 21 | ||
22 | namespace WixToolset.Http.Tuples | 22 | namespace WixToolset.Http.Symbols |
23 | { | 23 | { |
24 | using WixToolset.Data; | 24 | using WixToolset.Data; |
25 | 25 | ||
26 | public enum WixHttpUrlAceTupleFields | 26 | public enum WixHttpUrlAceSymbolFields |
27 | { | 27 | { |
28 | WixHttpUrlReservationRef, | 28 | WixHttpUrlReservationRef, |
29 | SecurityPrincipal, | 29 | SecurityPrincipal, |
30 | Rights, | 30 | Rights, |
31 | } | 31 | } |
32 | 32 | ||
33 | public class WixHttpUrlAceTuple : IntermediateTuple | 33 | public class WixHttpUrlAceSymbol : IntermediateSymbol |
34 | { | 34 | { |
35 | public WixHttpUrlAceTuple() : base(HttpTupleDefinitions.WixHttpUrlAce, null, null) | 35 | public WixHttpUrlAceSymbol() : base(HttpSymbolDefinitions.WixHttpUrlAce, null, null) |
36 | { | 36 | { |
37 | } | 37 | } |
38 | 38 | ||
39 | public WixHttpUrlAceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpTupleDefinitions.WixHttpUrlAce, sourceLineNumber, id) | 39 | public WixHttpUrlAceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpSymbolDefinitions.WixHttpUrlAce, sourceLineNumber, id) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | public IntermediateField this[WixHttpUrlAceTupleFields index] => this.Fields[(int)index]; | 43 | public IntermediateField this[WixHttpUrlAceSymbolFields index] => this.Fields[(int)index]; |
44 | 44 | ||
45 | public string WixHttpUrlReservationRef | 45 | public string WixHttpUrlReservationRef |
46 | { | 46 | { |
47 | get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlReservationRef].AsString(); | 47 | get => this.Fields[(int)WixHttpUrlAceSymbolFields.WixHttpUrlReservationRef].AsString(); |
48 | set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlReservationRef, value); | 48 | set => this.Set((int)WixHttpUrlAceSymbolFields.WixHttpUrlReservationRef, value); |
49 | } | 49 | } |
50 | 50 | ||
51 | public string SecurityPrincipal | 51 | public string SecurityPrincipal |
52 | { | 52 | { |
53 | get => this.Fields[(int)WixHttpUrlAceTupleFields.SecurityPrincipal].AsString(); | 53 | get => this.Fields[(int)WixHttpUrlAceSymbolFields.SecurityPrincipal].AsString(); |
54 | set => this.Set((int)WixHttpUrlAceTupleFields.SecurityPrincipal, value); | 54 | set => this.Set((int)WixHttpUrlAceSymbolFields.SecurityPrincipal, value); |
55 | } | 55 | } |
56 | 56 | ||
57 | public int Rights | 57 | public int Rights |
58 | { | 58 | { |
59 | get => this.Fields[(int)WixHttpUrlAceTupleFields.Rights].AsNumber(); | 59 | get => this.Fields[(int)WixHttpUrlAceSymbolFields.Rights].AsNumber(); |
60 | set => this.Set((int)WixHttpUrlAceTupleFields.Rights, value); | 60 | set => this.Set((int)WixHttpUrlAceSymbolFields.Rights, value); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | } \ No newline at end of file | 63 | } \ No newline at end of file |
diff --git a/src/wixext/Tuples/WixHttpUrlReservationTuple.cs b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs index d7dbb0a5..4bdc2fee 100644 --- a/src/wixext/Tuples/WixHttpUrlReservationTuple.cs +++ b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs | |||
@@ -3,28 +3,28 @@ | |||
3 | namespace WixToolset.Http | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.Http.Tuples; | 6 | using WixToolset.Http.Symbols; |
7 | 7 | ||
8 | public static partial class HttpTupleDefinitions | 8 | public static partial class HttpSymbolDefinitions |
9 | { | 9 | { |
10 | public static readonly IntermediateTupleDefinition WixHttpUrlReservation = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition WixHttpUrlReservation = new IntermediateSymbolDefinition( |
11 | HttpTupleDefinitionType.WixHttpUrlReservation.ToString(), | 11 | HttpSymbolDefinitionType.WixHttpUrlReservation.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.HandleExisting), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.HandleExisting), IntermediateFieldType.Number), |
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Sddl), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.Sddl), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Url), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.Url), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.ComponentRef), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.ComponentRef), IntermediateFieldType.String), |
18 | }, | 18 | }, |
19 | typeof(WixHttpUrlReservationTuple)); | 19 | typeof(WixHttpUrlReservationSymbol)); |
20 | } | 20 | } |
21 | } | 21 | } |
22 | 22 | ||
23 | namespace WixToolset.Http.Tuples | 23 | namespace WixToolset.Http.Symbols |
24 | { | 24 | { |
25 | using WixToolset.Data; | 25 | using WixToolset.Data; |
26 | 26 | ||
27 | public enum WixHttpUrlReservationTupleFields | 27 | public enum WixHttpUrlReservationSymbolFields |
28 | { | 28 | { |
29 | HandleExisting, | 29 | HandleExisting, |
30 | Sddl, | 30 | Sddl, |
@@ -32,40 +32,40 @@ namespace WixToolset.Http.Tuples | |||
32 | ComponentRef, | 32 | ComponentRef, |
33 | } | 33 | } |
34 | 34 | ||
35 | public class WixHttpUrlReservationTuple : IntermediateTuple | 35 | public class WixHttpUrlReservationSymbol : IntermediateSymbol |
36 | { | 36 | { |
37 | public WixHttpUrlReservationTuple() : base(HttpTupleDefinitions.WixHttpUrlReservation, null, null) | 37 | public WixHttpUrlReservationSymbol() : base(HttpSymbolDefinitions.WixHttpUrlReservation, null, null) |
38 | { | 38 | { |
39 | } | 39 | } |
40 | 40 | ||
41 | public WixHttpUrlReservationTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpTupleDefinitions.WixHttpUrlReservation, sourceLineNumber, id) | 41 | public WixHttpUrlReservationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpSymbolDefinitions.WixHttpUrlReservation, sourceLineNumber, id) |
42 | { | 42 | { |
43 | } | 43 | } |
44 | 44 | ||
45 | public IntermediateField this[WixHttpUrlReservationTupleFields index] => this.Fields[(int)index]; | 45 | public IntermediateField this[WixHttpUrlReservationSymbolFields index] => this.Fields[(int)index]; |
46 | 46 | ||
47 | public int HandleExisting | 47 | public int HandleExisting |
48 | { | 48 | { |
49 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.HandleExisting].AsNumber(); | 49 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.HandleExisting].AsNumber(); |
50 | set => this.Set((int)WixHttpUrlReservationTupleFields.HandleExisting, value); | 50 | set => this.Set((int)WixHttpUrlReservationSymbolFields.HandleExisting, value); |
51 | } | 51 | } |
52 | 52 | ||
53 | public string Sddl | 53 | public string Sddl |
54 | { | 54 | { |
55 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.Sddl].AsString(); | 55 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.Sddl].AsString(); |
56 | set => this.Set((int)WixHttpUrlReservationTupleFields.Sddl, value); | 56 | set => this.Set((int)WixHttpUrlReservationSymbolFields.Sddl, value); |
57 | } | 57 | } |
58 | 58 | ||
59 | public string Url | 59 | public string Url |
60 | { | 60 | { |
61 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.Url].AsString(); | 61 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.Url].AsString(); |
62 | set => this.Set((int)WixHttpUrlReservationTupleFields.Url, value); | 62 | set => this.Set((int)WixHttpUrlReservationSymbolFields.Url, value); |
63 | } | 63 | } |
64 | 64 | ||
65 | public string ComponentRef | 65 | public string ComponentRef |
66 | { | 66 | { |
67 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.ComponentRef].AsString(); | 67 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.ComponentRef].AsString(); |
68 | set => this.Set((int)WixHttpUrlReservationTupleFields.ComponentRef, value); | 68 | set => this.Set((int)WixHttpUrlReservationSymbolFields.ComponentRef, value); |
69 | } | 69 | } |
70 | } | 70 | } |
71 | } \ No newline at end of file | 71 | } \ No newline at end of file |