aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/ServiceConfigTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/ServiceConfigTuple.cs')
-rw-r--r--src/wixext/Tuples/ServiceConfigTuple.cs82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/wixext/Tuples/ServiceConfigTuple.cs b/src/wixext/Tuples/ServiceConfigTuple.cs
index 714396bc..3a877f9b 100644
--- a/src/wixext/Tuples/ServiceConfigTuple.cs
+++ b/src/wixext/Tuples/ServiceConfigTuple.cs
@@ -3,34 +3,34 @@
3namespace WixToolset.Util 3namespace WixToolset.Util
4{ 4{
5 using WixToolset.Data; 5 using WixToolset.Data;
6 using WixToolset.Util.Tuples; 6 using WixToolset.Util.Symbols;
7 7
8 public static partial class UtilTupleDefinitions 8 public static partial class UtilSymbolDefinitions
9 { 9 {
10 public static readonly IntermediateTupleDefinition ServiceConfig = new IntermediateTupleDefinition( 10 public static readonly IntermediateSymbolDefinition ServiceConfig = new IntermediateSymbolDefinition(
11 UtilTupleDefinitionType.ServiceConfig.ToString(), 11 UtilSymbolDefinitionType.ServiceConfig.ToString(),
12 new[] 12 new[]
13 { 13 {
14 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ServiceName), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.ServiceName), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ComponentRef), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.ComponentRef), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.NewService), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.NewService), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.FirstFailureActionType), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.FirstFailureActionType), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.SecondFailureActionType), IntermediateFieldType.String), 18 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.SecondFailureActionType), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ThirdFailureActionType), IntermediateFieldType.String), 19 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.ThirdFailureActionType), IntermediateFieldType.String),
20 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ResetPeriodInDays), IntermediateFieldType.Number), 20 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.ResetPeriodInDays), IntermediateFieldType.Number),
21 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.RestartServiceDelayInSeconds), IntermediateFieldType.Number), 21 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.RestartServiceDelayInSeconds), IntermediateFieldType.Number),
22 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ProgramCommandLine), IntermediateFieldType.String), 22 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.ProgramCommandLine), IntermediateFieldType.String),
23 new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.RebootMessage), IntermediateFieldType.String), 23 new IntermediateFieldDefinition(nameof(ServiceConfigSymbolFields.RebootMessage), IntermediateFieldType.String),
24 }, 24 },
25 typeof(ServiceConfigTuple)); 25 typeof(ServiceConfigSymbol));
26 } 26 }
27} 27}
28 28
29namespace WixToolset.Util.Tuples 29namespace WixToolset.Util.Symbols
30{ 30{
31 using WixToolset.Data; 31 using WixToolset.Data;
32 32
33 public enum ServiceConfigTupleFields 33 public enum ServiceConfigSymbolFields
34 { 34 {
35 ServiceName, 35 ServiceName,
36 ComponentRef, 36 ComponentRef,
@@ -44,76 +44,76 @@ namespace WixToolset.Util.Tuples
44 RebootMessage, 44 RebootMessage,
45 } 45 }
46 46
47 public class ServiceConfigTuple : IntermediateTuple 47 public class ServiceConfigSymbol : IntermediateSymbol
48 { 48 {
49 public ServiceConfigTuple() : base(UtilTupleDefinitions.ServiceConfig, null, null) 49 public ServiceConfigSymbol() : base(UtilSymbolDefinitions.ServiceConfig, null, null)
50 { 50 {
51 } 51 }
52 52
53 public ServiceConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.ServiceConfig, sourceLineNumber, id) 53 public ServiceConfigSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.ServiceConfig, sourceLineNumber, id)
54 { 54 {
55 } 55 }
56 56
57 public IntermediateField this[ServiceConfigTupleFields index] => this.Fields[(int)index]; 57 public IntermediateField this[ServiceConfigSymbolFields index] => this.Fields[(int)index];
58 58
59 public string ServiceName 59 public string ServiceName
60 { 60 {
61 get => this.Fields[(int)ServiceConfigTupleFields.ServiceName].AsString(); 61 get => this.Fields[(int)ServiceConfigSymbolFields.ServiceName].AsString();
62 set => this.Set((int)ServiceConfigTupleFields.ServiceName, value); 62 set => this.Set((int)ServiceConfigSymbolFields.ServiceName, value);
63 } 63 }
64 64
65 public string ComponentRef 65 public string ComponentRef
66 { 66 {
67 get => this.Fields[(int)ServiceConfigTupleFields.ComponentRef].AsString(); 67 get => this.Fields[(int)ServiceConfigSymbolFields.ComponentRef].AsString();
68 set => this.Set((int)ServiceConfigTupleFields.ComponentRef, value); 68 set => this.Set((int)ServiceConfigSymbolFields.ComponentRef, value);
69 } 69 }
70 70
71 public int NewService 71 public int NewService
72 { 72 {
73 get => this.Fields[(int)ServiceConfigTupleFields.NewService].AsNumber(); 73 get => this.Fields[(int)ServiceConfigSymbolFields.NewService].AsNumber();
74 set => this.Set((int)ServiceConfigTupleFields.NewService, value); 74 set => this.Set((int)ServiceConfigSymbolFields.NewService, value);
75 } 75 }
76 76
77 public string FirstFailureActionType 77 public string FirstFailureActionType
78 { 78 {
79 get => this.Fields[(int)ServiceConfigTupleFields.FirstFailureActionType].AsString(); 79 get => this.Fields[(int)ServiceConfigSymbolFields.FirstFailureActionType].AsString();
80 set => this.Set((int)ServiceConfigTupleFields.FirstFailureActionType, value); 80 set => this.Set((int)ServiceConfigSymbolFields.FirstFailureActionType, value);
81 } 81 }
82 82
83 public string SecondFailureActionType 83 public string SecondFailureActionType
84 { 84 {
85 get => this.Fields[(int)ServiceConfigTupleFields.SecondFailureActionType].AsString(); 85 get => this.Fields[(int)ServiceConfigSymbolFields.SecondFailureActionType].AsString();
86 set => this.Set((int)ServiceConfigTupleFields.SecondFailureActionType, value); 86 set => this.Set((int)ServiceConfigSymbolFields.SecondFailureActionType, value);
87 } 87 }
88 88
89 public string ThirdFailureActionType 89 public string ThirdFailureActionType
90 { 90 {
91 get => this.Fields[(int)ServiceConfigTupleFields.ThirdFailureActionType].AsString(); 91 get => this.Fields[(int)ServiceConfigSymbolFields.ThirdFailureActionType].AsString();
92 set => this.Set((int)ServiceConfigTupleFields.ThirdFailureActionType, value); 92 set => this.Set((int)ServiceConfigSymbolFields.ThirdFailureActionType, value);
93 } 93 }
94 94
95 public int? ResetPeriodInDays 95 public int? ResetPeriodInDays
96 { 96 {
97 get => this.Fields[(int)ServiceConfigTupleFields.ResetPeriodInDays].AsNullableNumber(); 97 get => this.Fields[(int)ServiceConfigSymbolFields.ResetPeriodInDays].AsNullableNumber();
98 set => this.Set((int)ServiceConfigTupleFields.ResetPeriodInDays, value); 98 set => this.Set((int)ServiceConfigSymbolFields.ResetPeriodInDays, value);
99 } 99 }
100 100
101 public int? RestartServiceDelayInSeconds 101 public int? RestartServiceDelayInSeconds
102 { 102 {
103 get => this.Fields[(int)ServiceConfigTupleFields.RestartServiceDelayInSeconds].AsNullableNumber(); 103 get => this.Fields[(int)ServiceConfigSymbolFields.RestartServiceDelayInSeconds].AsNullableNumber();
104 set => this.Set((int)ServiceConfigTupleFields.RestartServiceDelayInSeconds, value); 104 set => this.Set((int)ServiceConfigSymbolFields.RestartServiceDelayInSeconds, value);
105 } 105 }
106 106
107 public string ProgramCommandLine 107 public string ProgramCommandLine
108 { 108 {
109 get => this.Fields[(int)ServiceConfigTupleFields.ProgramCommandLine].AsString(); 109 get => this.Fields[(int)ServiceConfigSymbolFields.ProgramCommandLine].AsString();
110 set => this.Set((int)ServiceConfigTupleFields.ProgramCommandLine, value); 110 set => this.Set((int)ServiceConfigSymbolFields.ProgramCommandLine, value);
111 } 111 }
112 112
113 public string RebootMessage 113 public string RebootMessage
114 { 114 {
115 get => this.Fields[(int)ServiceConfigTupleFields.RebootMessage].AsString(); 115 get => this.Fields[(int)ServiceConfigSymbolFields.RebootMessage].AsString();
116 set => this.Set((int)ServiceConfigTupleFields.RebootMessage, value); 116 set => this.Set((int)ServiceConfigSymbolFields.RebootMessage, value);
117 } 117 }
118 } 118 }
119} \ No newline at end of file 119} \ No newline at end of file