aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-10 10:17:26 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-10 10:21:39 +1000
commitf92c72546326fb9b893bb7760691ee67ec7ab832 (patch)
tree405b3305fc4c08d25003cd601b3284bede89fa1a /src/wixext/Tuples
parentcff40371860cded7924b0010a26c9e8dc779cb0f (diff)
downloadwix-f92c72546326fb9b893bb7760691ee67ec7ab832.tar.gz
wix-f92c72546326fb9b893bb7760691ee67ec7ab832.tar.bz2
wix-f92c72546326fb9b893bb7760691ee67ec7ab832.zip
Modernize HttpCompiler and tuples.
Diffstat (limited to 'src/wixext/Tuples')
-rw-r--r--src/wixext/Tuples/WixHttpUrlAceTuple.cs18
-rw-r--r--src/wixext/Tuples/WixHttpUrlReservationTuple.cs18
2 files changed, 10 insertions, 26 deletions
diff --git a/src/wixext/Tuples/WixHttpUrlAceTuple.cs b/src/wixext/Tuples/WixHttpUrlAceTuple.cs
index 3e0006a0..f605c217 100644
--- a/src/wixext/Tuples/WixHttpUrlAceTuple.cs
+++ b/src/wixext/Tuples/WixHttpUrlAceTuple.cs
@@ -11,8 +11,7 @@ namespace WixToolset.Http
11 HttpTupleDefinitionType.WixHttpUrlAce.ToString(), 11 HttpTupleDefinitionType.WixHttpUrlAce.ToString(),
12 new[] 12 new[]
13 { 13 {
14 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlAce), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlReservationRef), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlReservation_), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.SecurityPrincipal), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.SecurityPrincipal), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.Rights), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.Rights), IntermediateFieldType.Number),
18 }, 17 },
@@ -26,8 +25,7 @@ namespace WixToolset.Http.Tuples
26 25
27 public enum WixHttpUrlAceTupleFields 26 public enum WixHttpUrlAceTupleFields
28 { 27 {
29 WixHttpUrlAce, 28 WixHttpUrlReservationRef,
30 WixHttpUrlReservation_,
31 SecurityPrincipal, 29 SecurityPrincipal,
32 Rights, 30 Rights,
33 } 31 }
@@ -44,16 +42,10 @@ namespace WixToolset.Http.Tuples
44 42
45 public IntermediateField this[WixHttpUrlAceTupleFields index] => this.Fields[(int)index]; 43 public IntermediateField this[WixHttpUrlAceTupleFields index] => this.Fields[(int)index];
46 44
47 public string WixHttpUrlAce 45 public string WixHttpUrlReservationRef
48 { 46 {
49 get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlAce].AsString(); 47 get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlReservationRef].AsString();
50 set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlAce, value); 48 set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlReservationRef, value);
51 }
52
53 public string WixHttpUrlReservation_
54 {
55 get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_].AsString();
56 set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_, value);
57 } 49 }
58 50
59 public string SecurityPrincipal 51 public string SecurityPrincipal
diff --git a/src/wixext/Tuples/WixHttpUrlReservationTuple.cs b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs
index 7a251f3d..d7dbb0a5 100644
--- a/src/wixext/Tuples/WixHttpUrlReservationTuple.cs
+++ b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs
@@ -11,11 +11,10 @@ namespace WixToolset.Http
11 HttpTupleDefinitionType.WixHttpUrlReservation.ToString(), 11 HttpTupleDefinitionType.WixHttpUrlReservation.ToString(),
12 new[] 12 new[]
13 { 13 {
14 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.WixHttpUrlReservation), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.HandleExisting), IntermediateFieldType.Number), 14 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.HandleExisting), IntermediateFieldType.Number),
16 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Sddl), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Sddl), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Url), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Url), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Component_), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.ComponentRef), IntermediateFieldType.String),
19 }, 18 },
20 typeof(WixHttpUrlReservationTuple)); 19 typeof(WixHttpUrlReservationTuple));
21 } 20 }
@@ -27,11 +26,10 @@ namespace WixToolset.Http.Tuples
27 26
28 public enum WixHttpUrlReservationTupleFields 27 public enum WixHttpUrlReservationTupleFields
29 { 28 {
30 WixHttpUrlReservation,
31 HandleExisting, 29 HandleExisting,
32 Sddl, 30 Sddl,
33 Url, 31 Url,
34 Component_, 32 ComponentRef,
35 } 33 }
36 34
37 public class WixHttpUrlReservationTuple : IntermediateTuple 35 public class WixHttpUrlReservationTuple : IntermediateTuple
@@ -46,12 +44,6 @@ namespace WixToolset.Http.Tuples
46 44
47 public IntermediateField this[WixHttpUrlReservationTupleFields index] => this.Fields[(int)index]; 45 public IntermediateField this[WixHttpUrlReservationTupleFields index] => this.Fields[(int)index];
48 46
49 public string WixHttpUrlReservation
50 {
51 get => this.Fields[(int)WixHttpUrlReservationTupleFields.WixHttpUrlReservation].AsString();
52 set => this.Set((int)WixHttpUrlReservationTupleFields.WixHttpUrlReservation, value);
53 }
54
55 public int HandleExisting 47 public int HandleExisting
56 { 48 {
57 get => this.Fields[(int)WixHttpUrlReservationTupleFields.HandleExisting].AsNumber(); 49 get => this.Fields[(int)WixHttpUrlReservationTupleFields.HandleExisting].AsNumber();
@@ -70,10 +62,10 @@ namespace WixToolset.Http.Tuples
70 set => this.Set((int)WixHttpUrlReservationTupleFields.Url, value); 62 set => this.Set((int)WixHttpUrlReservationTupleFields.Url, value);
71 } 63 }
72 64
73 public string Component_ 65 public string ComponentRef
74 { 66 {
75 get => this.Fields[(int)WixHttpUrlReservationTupleFields.Component_].AsString(); 67 get => this.Fields[(int)WixHttpUrlReservationTupleFields.ComponentRef].AsString();
76 set => this.Set((int)WixHttpUrlReservationTupleFields.Component_, value); 68 set => this.Set((int)WixHttpUrlReservationTupleFields.ComponentRef, value);
77 } 69 }
78 } 70 }
79} \ No newline at end of file 71} \ No newline at end of file