diff options
Diffstat (limited to 'src/wixext/Tuples/IIsWebLogTuple.cs')
-rw-r--r-- | src/wixext/Tuples/IIsWebLogTuple.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebLogTuple.cs b/src/wixext/Tuples/IIsWebLogTuple.cs new file mode 100644 index 00000000..1dfe0862 --- /dev/null +++ b/src/wixext/Tuples/IIsWebLogTuple.cs | |||
@@ -0,0 +1,55 @@ | |||
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.Tuples; | ||
7 | |||
8 | public static partial class IisTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition IIsWebLog = new IntermediateTupleDefinition( | ||
11 | IisTupleDefinitionType.IIsWebLog.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(IIsWebLogTupleFields.Log), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(IIsWebLogTupleFields.Format), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(IIsWebLogTuple)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Iis.Tuples | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public enum IIsWebLogTupleFields | ||
26 | { | ||
27 | Log, | ||
28 | Format, | ||
29 | } | ||
30 | |||
31 | public class IIsWebLogTuple : IntermediateTuple | ||
32 | { | ||
33 | public IIsWebLogTuple() : base(IisTupleDefinitions.IIsWebLog, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public IIsWebLogTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebLog, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[IIsWebLogTupleFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string Log | ||
44 | { | ||
45 | get => this.Fields[(int)IIsWebLogTupleFields.Log].AsString(); | ||
46 | set => this.Set((int)IIsWebLogTupleFields.Log, value); | ||
47 | } | ||
48 | |||
49 | public string Format | ||
50 | { | ||
51 | get => this.Fields[(int)IIsWebLogTupleFields.Format].AsString(); | ||
52 | set => this.Set((int)IIsWebLogTupleFields.Format, value); | ||
53 | } | ||
54 | } | ||
55 | } \ No newline at end of file | ||