From 7c8e34de56b3348c5a421cd0cced183e1394c5c7 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 4 May 2021 22:48:12 -0700 Subject: Move Iis.wixext into ext --- src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs (limited to 'src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs') 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 @@ +// 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. + +namespace WixToolset.Iis +{ + using WixToolset.Data; + using WixToolset.Iis.Symbols; + + public static partial class IisSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition IIsWebLog = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebLog.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebLogSymbolFields.Format), IntermediateFieldType.String), + }, + typeof(IIsWebLogSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebLogSymbolFields + { + Format, + } + + public class IIsWebLogSymbol : IntermediateSymbol + { + public IIsWebLogSymbol() : base(IisSymbolDefinitions.IIsWebLog, null, null) + { + } + + public IIsWebLogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebLog, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebLogSymbolFields index] => this.Fields[(int)index]; + + public string Format + { + get => this.Fields[(int)IIsWebLogSymbolFields.Format].AsString(); + set => this.Set((int)IIsWebLogSymbolFields.Format, value); + } + } +} \ No newline at end of file -- cgit v1.2.3-55-g6feb