aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Iis/wixext/Symbols/IIsWebLogSymbol.cs
blob: 409dc67313a2da9683165c3098da1457d6b7429f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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);
        }
    }
}