diff options
Diffstat (limited to 'src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs')
-rw-r--r-- | src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs b/src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs new file mode 100644 index 00000000..409dc673 --- /dev/null +++ b/src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
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 IIsWebLog = new IntermediateSymbolDefinition( | ||
11 | IisSymbolDefinitionType.IIsWebLog.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsWebLogSymbolFields.Format), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(IIsWebLogSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Iis.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum IIsWebLogSymbolFields | ||
25 | { | ||
26 | Format, | ||
27 | } | ||
28 | |||
29 | public class IIsWebLogSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public IIsWebLogSymbol() : base(IisSymbolDefinitions.IIsWebLog, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public IIsWebLogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebLog, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[IIsWebLogSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string Format | ||
42 | { | ||
43 | get => this.Fields[(int)IIsWebLogSymbolFields.Format].AsString(); | ||
44 | set => this.Set((int)IIsWebLogSymbolFields.Format, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||