diff options
Diffstat (limited to 'src/wixext/Tuples/IIsAppPoolTuple.cs')
-rw-r--r-- | src/wixext/Tuples/IIsAppPoolTuple.cs | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsAppPoolTuple.cs b/src/wixext/Tuples/IIsAppPoolTuple.cs new file mode 100644 index 00000000..10a00f50 --- /dev/null +++ b/src/wixext/Tuples/IIsAppPoolTuple.cs | |||
@@ -0,0 +1,167 @@ | |||
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.Iis | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Iis.Tuples; | ||
7 | |||
8 | public static partial class IisTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition IIsAppPool = new IntermediateTupleDefinition( | ||
11 | IisTupleDefinitionType.IIsAppPool.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.AppPool), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.Name), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.Component_), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.Attributes), IntermediateFieldType.Number), | ||
18 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.User_), IntermediateFieldType.String), | ||
19 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.RecycleMinutes), IntermediateFieldType.Number), | ||
20 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.RecycleRequests), IntermediateFieldType.Number), | ||
21 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.RecycleTimes), IntermediateFieldType.String), | ||
22 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.IdleTimeout), IntermediateFieldType.Number), | ||
23 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.QueueLimit), IntermediateFieldType.Number), | ||
24 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.CPUMon), IntermediateFieldType.String), | ||
25 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.MaxProc), IntermediateFieldType.Number), | ||
26 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.VirtualMemory), IntermediateFieldType.Number), | ||
27 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.PrivateMemory), IntermediateFieldType.Number), | ||
28 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.ManagedRuntimeVersion), IntermediateFieldType.String), | ||
29 | new IntermediateFieldDefinition(nameof(IIsAppPoolTupleFields.ManagedPipelineMode), IntermediateFieldType.String), | ||
30 | }, | ||
31 | typeof(IIsAppPoolTuple)); | ||
32 | } | ||
33 | } | ||
34 | |||
35 | namespace WixToolset.Iis.Tuples | ||
36 | { | ||
37 | using WixToolset.Data; | ||
38 | |||
39 | public enum IIsAppPoolTupleFields | ||
40 | { | ||
41 | AppPool, | ||
42 | Name, | ||
43 | Component_, | ||
44 | Attributes, | ||
45 | User_, | ||
46 | RecycleMinutes, | ||
47 | RecycleRequests, | ||
48 | RecycleTimes, | ||
49 | IdleTimeout, | ||
50 | QueueLimit, | ||
51 | CPUMon, | ||
52 | MaxProc, | ||
53 | VirtualMemory, | ||
54 | PrivateMemory, | ||
55 | ManagedRuntimeVersion, | ||
56 | ManagedPipelineMode, | ||
57 | } | ||
58 | |||
59 | public class IIsAppPoolTuple : IntermediateTuple | ||
60 | { | ||
61 | public IIsAppPoolTuple() : base(IisTupleDefinitions.IIsAppPool, null, null) | ||
62 | { | ||
63 | } | ||
64 | |||
65 | public IIsAppPoolTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsAppPool, sourceLineNumber, id) | ||
66 | { | ||
67 | } | ||
68 | |||
69 | public IntermediateField this[IIsAppPoolTupleFields index] => this.Fields[(int)index]; | ||
70 | |||
71 | public string AppPool | ||
72 | { | ||
73 | get => this.Fields[(int)IIsAppPoolTupleFields.AppPool].AsString(); | ||
74 | set => this.Set((int)IIsAppPoolTupleFields.AppPool, value); | ||
75 | } | ||
76 | |||
77 | public string Name | ||
78 | { | ||
79 | get => this.Fields[(int)IIsAppPoolTupleFields.Name].AsString(); | ||
80 | set => this.Set((int)IIsAppPoolTupleFields.Name, value); | ||
81 | } | ||
82 | |||
83 | public string Component_ | ||
84 | { | ||
85 | get => this.Fields[(int)IIsAppPoolTupleFields.Component_].AsString(); | ||
86 | set => this.Set((int)IIsAppPoolTupleFields.Component_, value); | ||
87 | } | ||
88 | |||
89 | public int Attributes | ||
90 | { | ||
91 | get => this.Fields[(int)IIsAppPoolTupleFields.Attributes].AsNumber(); | ||
92 | set => this.Set((int)IIsAppPoolTupleFields.Attributes, value); | ||
93 | } | ||
94 | |||
95 | public string User_ | ||
96 | { | ||
97 | get => this.Fields[(int)IIsAppPoolTupleFields.User_].AsString(); | ||
98 | set => this.Set((int)IIsAppPoolTupleFields.User_, value); | ||
99 | } | ||
100 | |||
101 | public int RecycleMinutes | ||
102 | { | ||
103 | get => this.Fields[(int)IIsAppPoolTupleFields.RecycleMinutes].AsNumber(); | ||
104 | set => this.Set((int)IIsAppPoolTupleFields.RecycleMinutes, value); | ||
105 | } | ||
106 | |||
107 | public int RecycleRequests | ||
108 | { | ||
109 | get => this.Fields[(int)IIsAppPoolTupleFields.RecycleRequests].AsNumber(); | ||
110 | set => this.Set((int)IIsAppPoolTupleFields.RecycleRequests, value); | ||
111 | } | ||
112 | |||
113 | public string RecycleTimes | ||
114 | { | ||
115 | get => this.Fields[(int)IIsAppPoolTupleFields.RecycleTimes].AsString(); | ||
116 | set => this.Set((int)IIsAppPoolTupleFields.RecycleTimes, value); | ||
117 | } | ||
118 | |||
119 | public int IdleTimeout | ||
120 | { | ||
121 | get => this.Fields[(int)IIsAppPoolTupleFields.IdleTimeout].AsNumber(); | ||
122 | set => this.Set((int)IIsAppPoolTupleFields.IdleTimeout, value); | ||
123 | } | ||
124 | |||
125 | public int QueueLimit | ||
126 | { | ||
127 | get => this.Fields[(int)IIsAppPoolTupleFields.QueueLimit].AsNumber(); | ||
128 | set => this.Set((int)IIsAppPoolTupleFields.QueueLimit, value); | ||
129 | } | ||
130 | |||
131 | public string CPUMon | ||
132 | { | ||
133 | get => this.Fields[(int)IIsAppPoolTupleFields.CPUMon].AsString(); | ||
134 | set => this.Set((int)IIsAppPoolTupleFields.CPUMon, value); | ||
135 | } | ||
136 | |||
137 | public int MaxProc | ||
138 | { | ||
139 | get => this.Fields[(int)IIsAppPoolTupleFields.MaxProc].AsNumber(); | ||
140 | set => this.Set((int)IIsAppPoolTupleFields.MaxProc, value); | ||
141 | } | ||
142 | |||
143 | public int VirtualMemory | ||
144 | { | ||
145 | get => this.Fields[(int)IIsAppPoolTupleFields.VirtualMemory].AsNumber(); | ||
146 | set => this.Set((int)IIsAppPoolTupleFields.VirtualMemory, value); | ||
147 | } | ||
148 | |||
149 | public int PrivateMemory | ||
150 | { | ||
151 | get => this.Fields[(int)IIsAppPoolTupleFields.PrivateMemory].AsNumber(); | ||
152 | set => this.Set((int)IIsAppPoolTupleFields.PrivateMemory, value); | ||
153 | } | ||
154 | |||
155 | public string ManagedRuntimeVersion | ||
156 | { | ||
157 | get => this.Fields[(int)IIsAppPoolTupleFields.ManagedRuntimeVersion].AsString(); | ||
158 | set => this.Set((int)IIsAppPoolTupleFields.ManagedRuntimeVersion, value); | ||
159 | } | ||
160 | |||
161 | public string ManagedPipelineMode | ||
162 | { | ||
163 | get => this.Fields[(int)IIsAppPoolTupleFields.ManagedPipelineMode].AsString(); | ||
164 | set => this.Set((int)IIsAppPoolTupleFields.ManagedPipelineMode, value); | ||
165 | } | ||
166 | } | ||
167 | } \ No newline at end of file | ||