diff options
Diffstat (limited to 'src/wixext/Tuples/IIsWebApplicationTuple.cs')
-rw-r--r-- | src/wixext/Tuples/IIsWebApplicationTuple.cs | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebApplicationTuple.cs b/src/wixext/Tuples/IIsWebApplicationTuple.cs new file mode 100644 index 00000000..403969b7 --- /dev/null +++ b/src/wixext/Tuples/IIsWebApplicationTuple.cs | |||
@@ -0,0 +1,135 @@ | |||
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 IIsWebApplication = new IntermediateTupleDefinition( | ||
11 | IisTupleDefinitionType.IIsWebApplication.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.Application), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.Name), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.Isolation), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.AllowSessions), IntermediateFieldType.Number), | ||
18 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.SessionTimeout), IntermediateFieldType.Number), | ||
19 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.Buffer), IntermediateFieldType.Number), | ||
20 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.ParentPaths), IntermediateFieldType.Number), | ||
21 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.DefaultScript), IntermediateFieldType.String), | ||
22 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.ScriptTimeout), IntermediateFieldType.Number), | ||
23 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.ServerDebugging), IntermediateFieldType.Number), | ||
24 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.ClientDebugging), IntermediateFieldType.Number), | ||
25 | new IntermediateFieldDefinition(nameof(IIsWebApplicationTupleFields.AppPool_), IntermediateFieldType.String), | ||
26 | }, | ||
27 | typeof(IIsWebApplicationTuple)); | ||
28 | } | ||
29 | } | ||
30 | |||
31 | namespace WixToolset.Iis.Tuples | ||
32 | { | ||
33 | using WixToolset.Data; | ||
34 | |||
35 | public enum IIsWebApplicationTupleFields | ||
36 | { | ||
37 | Application, | ||
38 | Name, | ||
39 | Isolation, | ||
40 | AllowSessions, | ||
41 | SessionTimeout, | ||
42 | Buffer, | ||
43 | ParentPaths, | ||
44 | DefaultScript, | ||
45 | ScriptTimeout, | ||
46 | ServerDebugging, | ||
47 | ClientDebugging, | ||
48 | AppPool_, | ||
49 | } | ||
50 | |||
51 | public class IIsWebApplicationTuple : IntermediateTuple | ||
52 | { | ||
53 | public IIsWebApplicationTuple() : base(IisTupleDefinitions.IIsWebApplication, null, null) | ||
54 | { | ||
55 | } | ||
56 | |||
57 | public IIsWebApplicationTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebApplication, sourceLineNumber, id) | ||
58 | { | ||
59 | } | ||
60 | |||
61 | public IntermediateField this[IIsWebApplicationTupleFields index] => this.Fields[(int)index]; | ||
62 | |||
63 | public string Application | ||
64 | { | ||
65 | get => this.Fields[(int)IIsWebApplicationTupleFields.Application].AsString(); | ||
66 | set => this.Set((int)IIsWebApplicationTupleFields.Application, value); | ||
67 | } | ||
68 | |||
69 | public string Name | ||
70 | { | ||
71 | get => this.Fields[(int)IIsWebApplicationTupleFields.Name].AsString(); | ||
72 | set => this.Set((int)IIsWebApplicationTupleFields.Name, value); | ||
73 | } | ||
74 | |||
75 | public int Isolation | ||
76 | { | ||
77 | get => this.Fields[(int)IIsWebApplicationTupleFields.Isolation].AsNumber(); | ||
78 | set => this.Set((int)IIsWebApplicationTupleFields.Isolation, value); | ||
79 | } | ||
80 | |||
81 | public int AllowSessions | ||
82 | { | ||
83 | get => this.Fields[(int)IIsWebApplicationTupleFields.AllowSessions].AsNumber(); | ||
84 | set => this.Set((int)IIsWebApplicationTupleFields.AllowSessions, value); | ||
85 | } | ||
86 | |||
87 | public int SessionTimeout | ||
88 | { | ||
89 | get => this.Fields[(int)IIsWebApplicationTupleFields.SessionTimeout].AsNumber(); | ||
90 | set => this.Set((int)IIsWebApplicationTupleFields.SessionTimeout, value); | ||
91 | } | ||
92 | |||
93 | public int Buffer | ||
94 | { | ||
95 | get => this.Fields[(int)IIsWebApplicationTupleFields.Buffer].AsNumber(); | ||
96 | set => this.Set((int)IIsWebApplicationTupleFields.Buffer, value); | ||
97 | } | ||
98 | |||
99 | public int ParentPaths | ||
100 | { | ||
101 | get => this.Fields[(int)IIsWebApplicationTupleFields.ParentPaths].AsNumber(); | ||
102 | set => this.Set((int)IIsWebApplicationTupleFields.ParentPaths, value); | ||
103 | } | ||
104 | |||
105 | public string DefaultScript | ||
106 | { | ||
107 | get => this.Fields[(int)IIsWebApplicationTupleFields.DefaultScript].AsString(); | ||
108 | set => this.Set((int)IIsWebApplicationTupleFields.DefaultScript, value); | ||
109 | } | ||
110 | |||
111 | public int ScriptTimeout | ||
112 | { | ||
113 | get => this.Fields[(int)IIsWebApplicationTupleFields.ScriptTimeout].AsNumber(); | ||
114 | set => this.Set((int)IIsWebApplicationTupleFields.ScriptTimeout, value); | ||
115 | } | ||
116 | |||
117 | public int ServerDebugging | ||
118 | { | ||
119 | get => this.Fields[(int)IIsWebApplicationTupleFields.ServerDebugging].AsNumber(); | ||
120 | set => this.Set((int)IIsWebApplicationTupleFields.ServerDebugging, value); | ||
121 | } | ||
122 | |||
123 | public int ClientDebugging | ||
124 | { | ||
125 | get => this.Fields[(int)IIsWebApplicationTupleFields.ClientDebugging].AsNumber(); | ||
126 | set => this.Set((int)IIsWebApplicationTupleFields.ClientDebugging, value); | ||
127 | } | ||
128 | |||
129 | public string AppPool_ | ||
130 | { | ||
131 | get => this.Fields[(int)IIsWebApplicationTupleFields.AppPool_].AsString(); | ||
132 | set => this.Set((int)IIsWebApplicationTupleFields.AppPool_, value); | ||
133 | } | ||
134 | } | ||
135 | } \ No newline at end of file | ||