diff options
Diffstat (limited to 'src/ext/Http/wixext/Symbols/WixHttpUrlReservationSymbol.cs')
-rw-r--r-- | src/ext/Http/wixext/Symbols/WixHttpUrlReservationSymbol.cs | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/ext/Http/wixext/Symbols/WixHttpUrlReservationSymbol.cs b/src/ext/Http/wixext/Symbols/WixHttpUrlReservationSymbol.cs new file mode 100644 index 00000000..4aa4a5da --- /dev/null +++ b/src/ext/Http/wixext/Symbols/WixHttpUrlReservationSymbol.cs | |||
@@ -0,0 +1,71 @@ | |||
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.Http | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Http.Symbols; | ||
7 | |||
8 | public static partial class HttpSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixHttpUrlReservation = new IntermediateSymbolDefinition( | ||
11 | HttpSymbolDefinitionType.WixHttpUrlReservation.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.HandleExisting), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.Sddl), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.Url), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationSymbolFields.ComponentRef), IntermediateFieldType.String), | ||
18 | }, | ||
19 | typeof(WixHttpUrlReservationSymbol)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Http.Symbols | ||
24 | { | ||
25 | using WixToolset.Data; | ||
26 | |||
27 | public enum WixHttpUrlReservationSymbolFields | ||
28 | { | ||
29 | HandleExisting, | ||
30 | Sddl, | ||
31 | Url, | ||
32 | ComponentRef, | ||
33 | } | ||
34 | |||
35 | public class WixHttpUrlReservationSymbol : IntermediateSymbol | ||
36 | { | ||
37 | public WixHttpUrlReservationSymbol() : base(HttpSymbolDefinitions.WixHttpUrlReservation, null, null) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public WixHttpUrlReservationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpSymbolDefinitions.WixHttpUrlReservation, sourceLineNumber, id) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IntermediateField this[WixHttpUrlReservationSymbolFields index] => this.Fields[(int)index]; | ||
46 | |||
47 | public HandleExisting HandleExisting | ||
48 | { | ||
49 | get => (HandleExisting)this.Fields[(int)WixHttpUrlReservationSymbolFields.HandleExisting].AsNumber(); | ||
50 | set => this.Set((int)WixHttpUrlReservationSymbolFields.HandleExisting, (int)value); | ||
51 | } | ||
52 | |||
53 | public string Sddl | ||
54 | { | ||
55 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.Sddl].AsString(); | ||
56 | set => this.Set((int)WixHttpUrlReservationSymbolFields.Sddl, value); | ||
57 | } | ||
58 | |||
59 | public string Url | ||
60 | { | ||
61 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.Url].AsString(); | ||
62 | set => this.Set((int)WixHttpUrlReservationSymbolFields.Url, value); | ||
63 | } | ||
64 | |||
65 | public string ComponentRef | ||
66 | { | ||
67 | get => this.Fields[(int)WixHttpUrlReservationSymbolFields.ComponentRef].AsString(); | ||
68 | set => this.Set((int)WixHttpUrlReservationSymbolFields.ComponentRef, value); | ||
69 | } | ||
70 | } | ||
71 | } \ No newline at end of file | ||