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