diff options
Diffstat (limited to 'src/wixext/Tuples/IIsWebDirTuple.cs')
-rw-r--r-- | src/wixext/Tuples/IIsWebDirTuple.cs | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebDirTuple.cs b/src/wixext/Tuples/IIsWebDirTuple.cs new file mode 100644 index 00000000..6e04b337 --- /dev/null +++ b/src/wixext/Tuples/IIsWebDirTuple.cs | |||
@@ -0,0 +1,87 @@ | |||
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 IIsWebDir = new IntermediateTupleDefinition( | ||
11 | IisTupleDefinitionType.IIsWebDir.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.WebDir), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.Component_), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.Web_), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.Path), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.DirProperties_), IntermediateFieldType.String), | ||
19 | new IntermediateFieldDefinition(nameof(IIsWebDirTupleFields.Application_), IntermediateFieldType.String), | ||
20 | }, | ||
21 | typeof(IIsWebDirTuple)); | ||
22 | } | ||
23 | } | ||
24 | |||
25 | namespace WixToolset.Iis.Tuples | ||
26 | { | ||
27 | using WixToolset.Data; | ||
28 | |||
29 | public enum IIsWebDirTupleFields | ||
30 | { | ||
31 | WebDir, | ||
32 | Component_, | ||
33 | Web_, | ||
34 | Path, | ||
35 | DirProperties_, | ||
36 | Application_, | ||
37 | } | ||
38 | |||
39 | public class IIsWebDirTuple : IntermediateTuple | ||
40 | { | ||
41 | public IIsWebDirTuple() : base(IisTupleDefinitions.IIsWebDir, null, null) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IIsWebDirTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebDir, sourceLineNumber, id) | ||
46 | { | ||
47 | } | ||
48 | |||
49 | public IntermediateField this[IIsWebDirTupleFields index] => this.Fields[(int)index]; | ||
50 | |||
51 | public string WebDir | ||
52 | { | ||
53 | get => this.Fields[(int)IIsWebDirTupleFields.WebDir].AsString(); | ||
54 | set => this.Set((int)IIsWebDirTupleFields.WebDir, value); | ||
55 | } | ||
56 | |||
57 | public string Component_ | ||
58 | { | ||
59 | get => this.Fields[(int)IIsWebDirTupleFields.Component_].AsString(); | ||
60 | set => this.Set((int)IIsWebDirTupleFields.Component_, value); | ||
61 | } | ||
62 | |||
63 | public string Web_ | ||
64 | { | ||
65 | get => this.Fields[(int)IIsWebDirTupleFields.Web_].AsString(); | ||
66 | set => this.Set((int)IIsWebDirTupleFields.Web_, value); | ||
67 | } | ||
68 | |||
69 | public string Path | ||
70 | { | ||
71 | get => this.Fields[(int)IIsWebDirTupleFields.Path].AsString(); | ||
72 | set => this.Set((int)IIsWebDirTupleFields.Path, value); | ||
73 | } | ||
74 | |||
75 | public string DirProperties_ | ||
76 | { | ||
77 | get => this.Fields[(int)IIsWebDirTupleFields.DirProperties_].AsString(); | ||
78 | set => this.Set((int)IIsWebDirTupleFields.DirProperties_, value); | ||
79 | } | ||
80 | |||
81 | public string Application_ | ||
82 | { | ||
83 | get => this.Fields[(int)IIsWebDirTupleFields.Application_].AsString(); | ||
84 | set => this.Set((int)IIsWebDirTupleFields.Application_, value); | ||
85 | } | ||
86 | } | ||
87 | } \ No newline at end of file | ||