| 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 IIsWebApplication = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsWebApplication.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Isolation), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.AllowSessions), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.SessionTimeout), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Buffer), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ParentPaths), IntermediateFieldType.Number), |
| 20 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.DefaultScript), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ScriptTimeout), IntermediateFieldType.Number), |
| 22 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ServerDebugging), IntermediateFieldType.Number), |
| 23 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ClientDebugging), IntermediateFieldType.Number), |
| 24 | new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.AppPoolRef), IntermediateFieldType.String), |
| 25 | }, |
| 26 | typeof(IIsWebApplicationSymbol)); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | namespace WixToolset.Iis.Symbols |
| 31 | { |
| 32 | using WixToolset.Data; |
| 33 | |
| 34 | public enum IIsWebApplicationSymbolFields |
| 35 | { |
| 36 | Name, |
| 37 | Isolation, |
| 38 | AllowSessions, |
| 39 | SessionTimeout, |
| 40 | Buffer, |
| 41 | ParentPaths, |
| 42 | DefaultScript, |
| 43 | ScriptTimeout, |
| 44 | ServerDebugging, |
| 45 | ClientDebugging, |
| 46 | AppPoolRef, |
| 47 | } |
| 48 | |
| 49 | public class IIsWebApplicationSymbol : IntermediateSymbol |
| 50 | { |
| 51 | public IIsWebApplicationSymbol() : base(IisSymbolDefinitions.IIsWebApplication, null, null) |
| 52 | { |
| 53 | } |
| 54 | |
| 55 | public IIsWebApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebApplication, sourceLineNumber, id) |
| 56 | { |
| 57 | } |
| 58 | |
| 59 | public IntermediateField this[IIsWebApplicationSymbolFields index] => this.Fields[(int)index]; |
| 60 | |
| 61 | public string Name |
| 62 | { |
| 63 | get => this.Fields[(int)IIsWebApplicationSymbolFields.Name].AsString(); |
| 64 | set => this.Set((int)IIsWebApplicationSymbolFields.Name, value); |
| 65 | } |
| 66 | |
| 67 | public int Isolation |
| 68 | { |
| 69 | get => this.Fields[(int)IIsWebApplicationSymbolFields.Isolation].AsNumber(); |
| 70 | set => this.Set((int)IIsWebApplicationSymbolFields.Isolation, value); |
| 71 | } |
| 72 | |
| 73 | public int? AllowSessions |
| 74 | { |
| 75 | get => this.Fields[(int)IIsWebApplicationSymbolFields.AllowSessions].AsNullableNumber(); |
| 76 | set => this.Set((int)IIsWebApplicationSymbolFields.AllowSessions, value); |
| 77 | } |
| 78 | |
| 79 | public int? SessionTimeout |
| 80 | { |
| 81 | get => this.Fields[(int)IIsWebApplicationSymbolFields.SessionTimeout].AsNullableNumber(); |
| 82 | set => this.Set((int)IIsWebApplicationSymbolFields.SessionTimeout, value); |
| 83 | } |
| 84 | |
| 85 | public int? Buffer |
| 86 | { |
| 87 | get => this.Fields[(int)IIsWebApplicationSymbolFields.Buffer].AsNullableNumber(); |
| 88 | set => this.Set((int)IIsWebApplicationSymbolFields.Buffer, value); |
| 89 | } |
| 90 | |
| 91 | public int? ParentPaths |
| 92 | { |
| 93 | get => this.Fields[(int)IIsWebApplicationSymbolFields.ParentPaths].AsNullableNumber(); |
| 94 | set => this.Set((int)IIsWebApplicationSymbolFields.ParentPaths, value); |
| 95 | } |
| 96 | |
| 97 | public string DefaultScript |
| 98 | { |
| 99 | get => this.Fields[(int)IIsWebApplicationSymbolFields.DefaultScript].AsString(); |
| 100 | set => this.Set((int)IIsWebApplicationSymbolFields.DefaultScript, value); |
| 101 | } |
| 102 | |
| 103 | public int? ScriptTimeout |
| 104 | { |
| 105 | get => this.Fields[(int)IIsWebApplicationSymbolFields.ScriptTimeout].AsNullableNumber(); |
| 106 | set => this.Set((int)IIsWebApplicationSymbolFields.ScriptTimeout, value); |
| 107 | } |
| 108 | |
| 109 | public int? ServerDebugging |
| 110 | { |
| 111 | get => this.Fields[(int)IIsWebApplicationSymbolFields.ServerDebugging].AsNullableNumber(); |
| 112 | set => this.Set((int)IIsWebApplicationSymbolFields.ServerDebugging, value); |
| 113 | } |
| 114 | |
| 115 | public int? ClientDebugging |
| 116 | { |
| 117 | get => this.Fields[(int)IIsWebApplicationSymbolFields.ClientDebugging].AsNullableNumber(); |
| 118 | set => this.Set((int)IIsWebApplicationSymbolFields.ClientDebugging, value); |
| 119 | } |
| 120 | |
| 121 | public string AppPoolRef |
| 122 | { |
| 123 | get => this.Fields[(int)IIsWebApplicationSymbolFields.AppPoolRef].AsString(); |
| 124 | set => this.Set((int)IIsWebApplicationSymbolFields.AppPoolRef, value); |
| 125 | } |
| 126 | } |
| 127 | } |