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 --- .../Iis/wixext/Symbols/IIsWebApplicationSymbol.cs | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 src/ext/Iis/wixext/Symbols/IIsWebApplicationSymbol.cs (limited to 'src/ext/Iis/wixext/Symbols/IIsWebApplicationSymbol.cs') diff --git a/src/ext/Iis/wixext/Symbols/IIsWebApplicationSymbol.cs b/src/ext/Iis/wixext/Symbols/IIsWebApplicationSymbol.cs new file mode 100644 index 00000000..2f6f87de --- /dev/null +++ b/src/ext/Iis/wixext/Symbols/IIsWebApplicationSymbol.cs @@ -0,0 +1,127 @@ +// 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 IIsWebApplication = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebApplication.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Isolation), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.AllowSessions), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.SessionTimeout), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.Buffer), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ParentPaths), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.DefaultScript), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ScriptTimeout), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ServerDebugging), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.ClientDebugging), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebApplicationSymbolFields.AppPoolRef), IntermediateFieldType.String), + }, + typeof(IIsWebApplicationSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebApplicationSymbolFields + { + Name, + Isolation, + AllowSessions, + SessionTimeout, + Buffer, + ParentPaths, + DefaultScript, + ScriptTimeout, + ServerDebugging, + ClientDebugging, + AppPoolRef, + } + + public class IIsWebApplicationSymbol : IntermediateSymbol + { + public IIsWebApplicationSymbol() : base(IisSymbolDefinitions.IIsWebApplication, null, null) + { + } + + public IIsWebApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebApplication, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebApplicationSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.Name].AsString(); + set => this.Set((int)IIsWebApplicationSymbolFields.Name, value); + } + + public int Isolation + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.Isolation].AsNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.Isolation, value); + } + + public int? AllowSessions + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.AllowSessions].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.AllowSessions, value); + } + + public int? SessionTimeout + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.SessionTimeout].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.SessionTimeout, value); + } + + public int? Buffer + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.Buffer].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.Buffer, value); + } + + public int? ParentPaths + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.ParentPaths].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.ParentPaths, value); + } + + public string DefaultScript + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.DefaultScript].AsString(); + set => this.Set((int)IIsWebApplicationSymbolFields.DefaultScript, value); + } + + public int? ScriptTimeout + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.ScriptTimeout].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.ScriptTimeout, value); + } + + public int? ServerDebugging + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.ServerDebugging].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.ServerDebugging, value); + } + + public int? ClientDebugging + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.ClientDebugging].AsNullableNumber(); + set => this.Set((int)IIsWebApplicationSymbolFields.ClientDebugging, value); + } + + public string AppPoolRef + { + get => this.Fields[(int)IIsWebApplicationSymbolFields.AppPoolRef].AsString(); + set => this.Set((int)IIsWebApplicationSymbolFields.AppPoolRef, value); + } + } +} \ No newline at end of file -- cgit v1.2.3-55-g6feb