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