| 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 IIsAppPool = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsAppPool.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Attributes), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.UserRef), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleMinutes), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleRequests), IntermediateFieldType.Number), |
| 20 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleTimes), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.IdleTimeout), IntermediateFieldType.Number), |
| 22 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.QueueLimit), IntermediateFieldType.Number), |
| 23 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.CPUMon), IntermediateFieldType.String), |
| 24 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.MaxProc), IntermediateFieldType.Number), |
| 25 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.VirtualMemory), IntermediateFieldType.Number), |
| 26 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.PrivateMemory), IntermediateFieldType.Number), |
| 27 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedRuntimeVersion), IntermediateFieldType.String), |
| 28 | new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedPipelineMode), IntermediateFieldType.String), |
| 29 | }, |
| 30 | typeof(IIsAppPoolSymbol)); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | namespace WixToolset.Iis.Symbols |
| 35 | { |
| 36 | using WixToolset.Data; |
| 37 | |
| 38 | public enum IIsAppPoolSymbolFields |
| 39 | { |
| 40 | Name, |
| 41 | ComponentRef, |
| 42 | Attributes, |
| 43 | UserRef, |
| 44 | RecycleMinutes, |
| 45 | RecycleRequests, |
| 46 | RecycleTimes, |
| 47 | IdleTimeout, |
| 48 | QueueLimit, |
| 49 | CPUMon, |
| 50 | MaxProc, |
| 51 | VirtualMemory, |
| 52 | PrivateMemory, |
| 53 | ManagedRuntimeVersion, |
| 54 | ManagedPipelineMode, |
| 55 | } |
| 56 | |
| 57 | public class IIsAppPoolSymbol : IntermediateSymbol |
| 58 | { |
| 59 | public IIsAppPoolSymbol() : base(IisSymbolDefinitions.IIsAppPool, null, null) |
| 60 | { |
| 61 | } |
| 62 | |
| 63 | public IIsAppPoolSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsAppPool, sourceLineNumber, id) |
| 64 | { |
| 65 | } |
| 66 | |
| 67 | public IntermediateField this[IIsAppPoolSymbolFields index] => this.Fields[(int)index]; |
| 68 | |
| 69 | public string Name |
| 70 | { |
| 71 | get => this.Fields[(int)IIsAppPoolSymbolFields.Name].AsString(); |
| 72 | set => this.Set((int)IIsAppPoolSymbolFields.Name, value); |
| 73 | } |
| 74 | |
| 75 | public string ComponentRef |
| 76 | { |
| 77 | get => this.Fields[(int)IIsAppPoolSymbolFields.ComponentRef].AsString(); |
| 78 | set => this.Set((int)IIsAppPoolSymbolFields.ComponentRef, value); |
| 79 | } |
| 80 | |
| 81 | public int Attributes |
| 82 | { |
| 83 | get => this.Fields[(int)IIsAppPoolSymbolFields.Attributes].AsNumber(); |
| 84 | set => this.Set((int)IIsAppPoolSymbolFields.Attributes, value); |
| 85 | } |
| 86 | |
| 87 | public string UserRef |
| 88 | { |
| 89 | get => this.Fields[(int)IIsAppPoolSymbolFields.UserRef].AsString(); |
| 90 | set => this.Set((int)IIsAppPoolSymbolFields.UserRef, value); |
| 91 | } |
| 92 | |
| 93 | public int? RecycleMinutes |
| 94 | { |
| 95 | get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleMinutes].AsNullableNumber(); |
| 96 | set => this.Set((int)IIsAppPoolSymbolFields.RecycleMinutes, value); |
| 97 | } |
| 98 | |
| 99 | public int? RecycleRequests |
| 100 | { |
| 101 | get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleRequests].AsNullableNumber(); |
| 102 | set => this.Set((int)IIsAppPoolSymbolFields.RecycleRequests, value); |
| 103 | } |
| 104 | |
| 105 | public string RecycleTimes |
| 106 | { |
| 107 | get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleTimes].AsString(); |
| 108 | set => this.Set((int)IIsAppPoolSymbolFields.RecycleTimes, value); |
| 109 | } |
| 110 | |
| 111 | public int? IdleTimeout |
| 112 | { |
| 113 | get => this.Fields[(int)IIsAppPoolSymbolFields.IdleTimeout].AsNullableNumber(); |
| 114 | set => this.Set((int)IIsAppPoolSymbolFields.IdleTimeout, value); |
| 115 | } |
| 116 | |
| 117 | public int? QueueLimit |
| 118 | { |
| 119 | get => this.Fields[(int)IIsAppPoolSymbolFields.QueueLimit].AsNullableNumber(); |
| 120 | set => this.Set((int)IIsAppPoolSymbolFields.QueueLimit, value); |
| 121 | } |
| 122 | |
| 123 | public string CPUMon |
| 124 | { |
| 125 | get => this.Fields[(int)IIsAppPoolSymbolFields.CPUMon].AsString(); |
| 126 | set => this.Set((int)IIsAppPoolSymbolFields.CPUMon, value); |
| 127 | } |
| 128 | |
| 129 | public int? MaxProc |
| 130 | { |
| 131 | get => this.Fields[(int)IIsAppPoolSymbolFields.MaxProc].AsNullableNumber(); |
| 132 | set => this.Set((int)IIsAppPoolSymbolFields.MaxProc, value); |
| 133 | } |
| 134 | |
| 135 | public int? VirtualMemory |
| 136 | { |
| 137 | get => this.Fields[(int)IIsAppPoolSymbolFields.VirtualMemory].AsNullableNumber(); |
| 138 | set => this.Set((int)IIsAppPoolSymbolFields.VirtualMemory, value); |
| 139 | } |
| 140 | |
| 141 | public int? PrivateMemory |
| 142 | { |
| 143 | get => this.Fields[(int)IIsAppPoolSymbolFields.PrivateMemory].AsNullableNumber(); |
| 144 | set => this.Set((int)IIsAppPoolSymbolFields.PrivateMemory, value); |
| 145 | } |
| 146 | |
| 147 | public string ManagedRuntimeVersion |
| 148 | { |
| 149 | get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedRuntimeVersion].AsString(); |
| 150 | set => this.Set((int)IIsAppPoolSymbolFields.ManagedRuntimeVersion, value); |
| 151 | } |
| 152 | |
| 153 | public string ManagedPipelineMode |
| 154 | { |
| 155 | get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedPipelineMode].AsString(); |
| 156 | set => this.Set((int)IIsAppPoolSymbolFields.ManagedPipelineMode, value); |
| 157 | } |
| 158 | } |
| 159 | } |