diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:48:12 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:48:12 -0700 |
commit | 7c8e34de56b3348c5a421cd0cced183e1394c5c7 (patch) | |
tree | c2f17867b49e33e0833eae2e1841a00b009c1a15 /src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs | |
parent | c5c87377d99beefe83a3470aab326d12bdf0f8a4 (diff) | |
download | wix-7c8e34de56b3348c5a421cd0cced183e1394c5c7.tar.gz wix-7c8e34de56b3348c5a421cd0cced183e1394c5c7.tar.bz2 wix-7c8e34de56b3348c5a421cd0cced183e1394c5c7.zip |
Move Iis.wixext into ext
Diffstat (limited to 'src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs')
-rw-r--r-- | src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs b/src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs new file mode 100644 index 00000000..44922357 --- /dev/null +++ b/src/ext/Iis/wixext/Symbols/IIsWebServiceExtensionSymbol.cs | |||
@@ -0,0 +1,79 @@ | |||
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.Symbols; | ||
7 | |||
8 | public static partial class IisSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition IIsWebServiceExtension = new IntermediateSymbolDefinition( | ||
11 | IisSymbolDefinitionType.IIsWebServiceExtension.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.File), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Description), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Group), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Attributes), IntermediateFieldType.Number), | ||
19 | }, | ||
20 | typeof(IIsWebServiceExtensionSymbol)); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | namespace WixToolset.Iis.Symbols | ||
25 | { | ||
26 | using WixToolset.Data; | ||
27 | |||
28 | public enum IIsWebServiceExtensionSymbolFields | ||
29 | { | ||
30 | ComponentRef, | ||
31 | File, | ||
32 | Description, | ||
33 | Group, | ||
34 | Attributes, | ||
35 | } | ||
36 | |||
37 | public class IIsWebServiceExtensionSymbol : IntermediateSymbol | ||
38 | { | ||
39 | public IIsWebServiceExtensionSymbol() : base(IisSymbolDefinitions.IIsWebServiceExtension, null, null) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IIsWebServiceExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebServiceExtension, sourceLineNumber, id) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | public IntermediateField this[IIsWebServiceExtensionSymbolFields index] => this.Fields[(int)index]; | ||
48 | |||
49 | public string ComponentRef | ||
50 | { | ||
51 | get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.ComponentRef].AsString(); | ||
52 | set => this.Set((int)IIsWebServiceExtensionSymbolFields.ComponentRef, value); | ||
53 | } | ||
54 | |||
55 | public string File | ||
56 | { | ||
57 | get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.File].AsString(); | ||
58 | set => this.Set((int)IIsWebServiceExtensionSymbolFields.File, value); | ||
59 | } | ||
60 | |||
61 | public string Description | ||
62 | { | ||
63 | get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Description].AsString(); | ||
64 | set => this.Set((int)IIsWebServiceExtensionSymbolFields.Description, value); | ||
65 | } | ||
66 | |||
67 | public string Group | ||
68 | { | ||
69 | get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Group].AsString(); | ||
70 | set => this.Set((int)IIsWebServiceExtensionSymbolFields.Group, value); | ||
71 | } | ||
72 | |||
73 | public int Attributes | ||
74 | { | ||
75 | get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Attributes].AsNumber(); | ||
76 | set => this.Set((int)IIsWebServiceExtensionSymbolFields.Attributes, value); | ||
77 | } | ||
78 | } | ||
79 | } \ No newline at end of file | ||