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