From 8661d3841198215a75367cfd4a3a6f705a801127 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 27 Jun 2020 15:09:56 -0700 Subject: The Great Tuple to Symbol File Rename (tm) --- src/wixext/Symbols/CertificateHashSymbol.cs | 55 +++++++ src/wixext/Symbols/CertificateSymbol.cs | 103 +++++++++++++ src/wixext/Symbols/IIsAppPoolSymbol.cs | 159 +++++++++++++++++++++ src/wixext/Symbols/IIsFilterSymbol.cs | 95 ++++++++++++ src/wixext/Symbols/IIsHttpHeaderSymbol.cs | 95 ++++++++++++ src/wixext/Symbols/IIsMimeMapSymbol.cs | 71 +++++++++ src/wixext/Symbols/IIsPropertySymbol.cs | 63 ++++++++ src/wixext/Symbols/IIsWebAddressSymbol.cs | 79 ++++++++++ .../Symbols/IIsWebApplicationExtensionSymbol.cs | 79 ++++++++++ src/wixext/Symbols/IIsWebApplicationSymbol.cs | 127 ++++++++++++++++ src/wixext/Symbols/IIsWebDirPropertiesSymbol.cs | 151 +++++++++++++++++++ src/wixext/Symbols/IIsWebDirSymbol.cs | 79 ++++++++++ src/wixext/Symbols/IIsWebErrorSymbol.cs | 87 +++++++++++ src/wixext/Symbols/IIsWebLogSymbol.cs | 47 ++++++ src/wixext/Symbols/IIsWebServiceExtensionSymbol.cs | 79 ++++++++++ src/wixext/Symbols/IIsWebSiteCertificatesSymbol.cs | 55 +++++++ src/wixext/Symbols/IIsWebSiteSymbol.cs | 135 +++++++++++++++++ src/wixext/Symbols/IIsWebVirtualDirSymbol.cs | 87 +++++++++++ src/wixext/Symbols/IisSymbolDefinitions.cs | 107 ++++++++++++++ src/wixext/Tuples/CertificateHashTuple.cs | 55 ------- src/wixext/Tuples/CertificateTuple.cs | 103 ------------- src/wixext/Tuples/IIsAppPoolTuple.cs | 159 --------------------- src/wixext/Tuples/IIsFilterTuple.cs | 95 ------------ src/wixext/Tuples/IIsHttpHeaderTuple.cs | 95 ------------ src/wixext/Tuples/IIsMimeMapTuple.cs | 71 --------- src/wixext/Tuples/IIsPropertyTuple.cs | 63 -------- src/wixext/Tuples/IIsWebAddressTuple.cs | 79 ---------- .../Tuples/IIsWebApplicationExtensionTuple.cs | 79 ---------- src/wixext/Tuples/IIsWebApplicationTuple.cs | 127 ---------------- src/wixext/Tuples/IIsWebDirPropertiesTuple.cs | 151 ------------------- src/wixext/Tuples/IIsWebDirTuple.cs | 79 ---------- src/wixext/Tuples/IIsWebErrorTuple.cs | 87 ----------- src/wixext/Tuples/IIsWebLogTuple.cs | 47 ------ src/wixext/Tuples/IIsWebServiceExtensionTuple.cs | 79 ---------- src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs | 55 ------- src/wixext/Tuples/IIsWebSiteTuple.cs | 135 ----------------- src/wixext/Tuples/IIsWebVirtualDirTuple.cs | 87 ----------- src/wixext/Tuples/IisTupleDefinitions.cs | 107 -------------- 38 files changed, 1753 insertions(+), 1753 deletions(-) create mode 100644 src/wixext/Symbols/CertificateHashSymbol.cs create mode 100644 src/wixext/Symbols/CertificateSymbol.cs create mode 100644 src/wixext/Symbols/IIsAppPoolSymbol.cs create mode 100644 src/wixext/Symbols/IIsFilterSymbol.cs create mode 100644 src/wixext/Symbols/IIsHttpHeaderSymbol.cs create mode 100644 src/wixext/Symbols/IIsMimeMapSymbol.cs create mode 100644 src/wixext/Symbols/IIsPropertySymbol.cs create mode 100644 src/wixext/Symbols/IIsWebAddressSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebApplicationExtensionSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebApplicationSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebDirPropertiesSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebDirSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebErrorSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebLogSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebServiceExtensionSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebSiteCertificatesSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebSiteSymbol.cs create mode 100644 src/wixext/Symbols/IIsWebVirtualDirSymbol.cs create mode 100644 src/wixext/Symbols/IisSymbolDefinitions.cs delete mode 100644 src/wixext/Tuples/CertificateHashTuple.cs delete mode 100644 src/wixext/Tuples/CertificateTuple.cs delete mode 100644 src/wixext/Tuples/IIsAppPoolTuple.cs delete mode 100644 src/wixext/Tuples/IIsFilterTuple.cs delete mode 100644 src/wixext/Tuples/IIsHttpHeaderTuple.cs delete mode 100644 src/wixext/Tuples/IIsMimeMapTuple.cs delete mode 100644 src/wixext/Tuples/IIsPropertyTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebAddressTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebApplicationExtensionTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebApplicationTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebDirPropertiesTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebDirTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebErrorTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebLogTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebServiceExtensionTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebSiteTuple.cs delete mode 100644 src/wixext/Tuples/IIsWebVirtualDirTuple.cs delete mode 100644 src/wixext/Tuples/IisTupleDefinitions.cs (limited to 'src/wixext') diff --git a/src/wixext/Symbols/CertificateHashSymbol.cs b/src/wixext/Symbols/CertificateHashSymbol.cs new file mode 100644 index 00000000..866d474c --- /dev/null +++ b/src/wixext/Symbols/CertificateHashSymbol.cs @@ -0,0 +1,55 @@ +// 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 CertificateHash = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.CertificateHash.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(CertificateHashSymbolFields.CertificateRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateHashSymbolFields.Hash), IntermediateFieldType.String), + }, + typeof(CertificateHashSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum CertificateHashSymbolFields + { + CertificateRef, + Hash, + } + + public class CertificateHashSymbol : IntermediateSymbol + { + public CertificateHashSymbol() : base(IisSymbolDefinitions.CertificateHash, null, null) + { + } + + public CertificateHashSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.CertificateHash, sourceLineNumber, id) + { + } + + public IntermediateField this[CertificateHashSymbolFields index] => this.Fields[(int)index]; + + public string CertificateRef + { + get => this.Fields[(int)CertificateHashSymbolFields.CertificateRef].AsString(); + set => this.Set((int)CertificateHashSymbolFields.CertificateRef, value); + } + + public string Hash + { + get => this.Fields[(int)CertificateHashSymbolFields.Hash].AsString(); + set => this.Set((int)CertificateHashSymbolFields.Hash, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/CertificateSymbol.cs b/src/wixext/Symbols/CertificateSymbol.cs new file mode 100644 index 00000000..b80b6ba4 --- /dev/null +++ b/src/wixext/Symbols/CertificateSymbol.cs @@ -0,0 +1,103 @@ +// 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 Certificate = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.Certificate.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.StoreLocation), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.StoreName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.BinaryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.CertificatePath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(CertificateSymbolFields.PFXPassword), IntermediateFieldType.String), + }, + typeof(CertificateSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum CertificateSymbolFields + { + ComponentRef, + Name, + StoreLocation, + StoreName, + Attributes, + BinaryRef, + CertificatePath, + PFXPassword, + } + + public class CertificateSymbol : IntermediateSymbol + { + public CertificateSymbol() : base(IisSymbolDefinitions.Certificate, null, null) + { + } + + public CertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.Certificate, sourceLineNumber, id) + { + } + + public IntermediateField this[CertificateSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)CertificateSymbolFields.ComponentRef].AsString(); + set => this.Set((int)CertificateSymbolFields.ComponentRef, value); + } + + public string Name + { + get => this.Fields[(int)CertificateSymbolFields.Name].AsString(); + set => this.Set((int)CertificateSymbolFields.Name, value); + } + + public int StoreLocation + { + get => this.Fields[(int)CertificateSymbolFields.StoreLocation].AsNumber(); + set => this.Set((int)CertificateSymbolFields.StoreLocation, value); + } + + public string StoreName + { + get => this.Fields[(int)CertificateSymbolFields.StoreName].AsString(); + set => this.Set((int)CertificateSymbolFields.StoreName, value); + } + + public int Attributes + { + get => this.Fields[(int)CertificateSymbolFields.Attributes].AsNumber(); + set => this.Set((int)CertificateSymbolFields.Attributes, value); + } + + public string BinaryRef + { + get => this.Fields[(int)CertificateSymbolFields.BinaryRef].AsString(); + set => this.Set((int)CertificateSymbolFields.BinaryRef, value); + } + + public string CertificatePath + { + get => this.Fields[(int)CertificateSymbolFields.CertificatePath].AsString(); + set => this.Set((int)CertificateSymbolFields.CertificatePath, value); + } + + public string PFXPassword + { + get => this.Fields[(int)CertificateSymbolFields.PFXPassword].AsString(); + set => this.Set((int)CertificateSymbolFields.PFXPassword, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsAppPoolSymbol.cs b/src/wixext/Symbols/IIsAppPoolSymbol.cs new file mode 100644 index 00000000..a6fab136 --- /dev/null +++ b/src/wixext/Symbols/IIsAppPoolSymbol.cs @@ -0,0 +1,159 @@ +// 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 IIsAppPool = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsAppPool.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.UserRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleMinutes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleRequests), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleTimes), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.IdleTimeout), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.QueueLimit), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.CPUMon), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.MaxProc), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.VirtualMemory), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.PrivateMemory), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedRuntimeVersion), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedPipelineMode), IntermediateFieldType.String), + }, + typeof(IIsAppPoolSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsAppPoolSymbolFields + { + Name, + ComponentRef, + Attributes, + UserRef, + RecycleMinutes, + RecycleRequests, + RecycleTimes, + IdleTimeout, + QueueLimit, + CPUMon, + MaxProc, + VirtualMemory, + PrivateMemory, + ManagedRuntimeVersion, + ManagedPipelineMode, + } + + public class IIsAppPoolSymbol : IntermediateSymbol + { + public IIsAppPoolSymbol() : base(IisSymbolDefinitions.IIsAppPool, null, null) + { + } + + public IIsAppPoolSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsAppPool, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsAppPoolSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => this.Fields[(int)IIsAppPoolSymbolFields.Name].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.Name, value); + } + + public string ComponentRef + { + get => this.Fields[(int)IIsAppPoolSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.ComponentRef, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsAppPoolSymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.Attributes, value); + } + + public string UserRef + { + get => this.Fields[(int)IIsAppPoolSymbolFields.UserRef].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.UserRef, value); + } + + public int? RecycleMinutes + { + get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleMinutes].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.RecycleMinutes, value); + } + + public int? RecycleRequests + { + get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleRequests].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.RecycleRequests, value); + } + + public string RecycleTimes + { + get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleTimes].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.RecycleTimes, value); + } + + public int? IdleTimeout + { + get => this.Fields[(int)IIsAppPoolSymbolFields.IdleTimeout].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.IdleTimeout, value); + } + + public int? QueueLimit + { + get => this.Fields[(int)IIsAppPoolSymbolFields.QueueLimit].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.QueueLimit, value); + } + + public string CPUMon + { + get => this.Fields[(int)IIsAppPoolSymbolFields.CPUMon].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.CPUMon, value); + } + + public int? MaxProc + { + get => this.Fields[(int)IIsAppPoolSymbolFields.MaxProc].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.MaxProc, value); + } + + public int? VirtualMemory + { + get => this.Fields[(int)IIsAppPoolSymbolFields.VirtualMemory].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.VirtualMemory, value); + } + + public int? PrivateMemory + { + get => this.Fields[(int)IIsAppPoolSymbolFields.PrivateMemory].AsNullableNumber(); + set => this.Set((int)IIsAppPoolSymbolFields.PrivateMemory, value); + } + + public string ManagedRuntimeVersion + { + get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedRuntimeVersion].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.ManagedRuntimeVersion, value); + } + + public string ManagedPipelineMode + { + get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedPipelineMode].AsString(); + set => this.Set((int)IIsAppPoolSymbolFields.ManagedPipelineMode, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsFilterSymbol.cs b/src/wixext/Symbols/IIsFilterSymbol.cs new file mode 100644 index 00000000..618730bf --- /dev/null +++ b/src/wixext/Symbols/IIsFilterSymbol.cs @@ -0,0 +1,95 @@ +// 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 IIsFilter = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsFilter.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Path), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.WebRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Flags), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.LoadOrder), IntermediateFieldType.Number), + }, + typeof(IIsFilterSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsFilterSymbolFields + { + Name, + ComponentRef, + Path, + WebRef, + Description, + Flags, + LoadOrder, + } + + public class IIsFilterSymbol : IntermediateSymbol + { + public IIsFilterSymbol() : base(IisSymbolDefinitions.IIsFilter, null, null) + { + } + + public IIsFilterSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsFilter, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsFilterSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => this.Fields[(int)IIsFilterSymbolFields.Name].AsString(); + set => this.Set((int)IIsFilterSymbolFields.Name, value); + } + + public string ComponentRef + { + get => this.Fields[(int)IIsFilterSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsFilterSymbolFields.ComponentRef, value); + } + + public string Path + { + get => this.Fields[(int)IIsFilterSymbolFields.Path].AsString(); + set => this.Set((int)IIsFilterSymbolFields.Path, value); + } + + public string WebRef + { + get => this.Fields[(int)IIsFilterSymbolFields.WebRef].AsString(); + set => this.Set((int)IIsFilterSymbolFields.WebRef, value); + } + + public string Description + { + get => this.Fields[(int)IIsFilterSymbolFields.Description].AsString(); + set => this.Set((int)IIsFilterSymbolFields.Description, value); + } + + public int Flags + { + get => this.Fields[(int)IIsFilterSymbolFields.Flags].AsNumber(); + set => this.Set((int)IIsFilterSymbolFields.Flags, value); + } + + public int? LoadOrder + { + get => this.Fields[(int)IIsFilterSymbolFields.LoadOrder].AsNullableNumber(); + set => this.Set((int)IIsFilterSymbolFields.LoadOrder, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsHttpHeaderSymbol.cs b/src/wixext/Symbols/IIsHttpHeaderSymbol.cs new file mode 100644 index 00000000..3ab2bf59 --- /dev/null +++ b/src/wixext/Symbols/IIsHttpHeaderSymbol.cs @@ -0,0 +1,95 @@ +// 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 IIsHttpHeader = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsHttpHeader.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.HttpHeader), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.ParentType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.ParentValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Sequence), IntermediateFieldType.Number), + }, + typeof(IIsHttpHeaderSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsHttpHeaderSymbolFields + { + HttpHeader, + ParentType, + ParentValue, + Name, + Value, + Attributes, + Sequence, + } + + public class IIsHttpHeaderSymbol : IntermediateSymbol + { + public IIsHttpHeaderSymbol() : base(IisSymbolDefinitions.IIsHttpHeader, null, null) + { + } + + public IIsHttpHeaderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsHttpHeader, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsHttpHeaderSymbolFields index] => this.Fields[(int)index]; + + public string HttpHeader + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.HttpHeader].AsString(); + set => this.Set((int)IIsHttpHeaderSymbolFields.HttpHeader, value); + } + + public int ParentType + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.ParentType].AsNumber(); + set => this.Set((int)IIsHttpHeaderSymbolFields.ParentType, value); + } + + public string ParentValue + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.ParentValue].AsString(); + set => this.Set((int)IIsHttpHeaderSymbolFields.ParentValue, value); + } + + public string Name + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.Name].AsString(); + set => this.Set((int)IIsHttpHeaderSymbolFields.Name, value); + } + + public string Value + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.Value].AsString(); + set => this.Set((int)IIsHttpHeaderSymbolFields.Value, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsHttpHeaderSymbolFields.Attributes, value); + } + + public int? Sequence + { + get => this.Fields[(int)IIsHttpHeaderSymbolFields.Sequence].AsNullableNumber(); + set => this.Set((int)IIsHttpHeaderSymbolFields.Sequence, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsMimeMapSymbol.cs b/src/wixext/Symbols/IIsMimeMapSymbol.cs new file mode 100644 index 00000000..4af6f81c --- /dev/null +++ b/src/wixext/Symbols/IIsMimeMapSymbol.cs @@ -0,0 +1,71 @@ +// 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 IIsMimeMap = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsMimeMap.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.ParentType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.ParentValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.MimeType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.Extension), IntermediateFieldType.String), + }, + typeof(IIsMimeMapSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsMimeMapSymbolFields + { + ParentType, + ParentValue, + MimeType, + Extension, + } + + public class IIsMimeMapSymbol : IntermediateSymbol + { + public IIsMimeMapSymbol() : base(IisSymbolDefinitions.IIsMimeMap, null, null) + { + } + + public IIsMimeMapSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsMimeMap, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsMimeMapSymbolFields index] => this.Fields[(int)index]; + + public int ParentType + { + get => this.Fields[(int)IIsMimeMapSymbolFields.ParentType].AsNumber(); + set => this.Set((int)IIsMimeMapSymbolFields.ParentType, value); + } + + public string ParentValue + { + get => this.Fields[(int)IIsMimeMapSymbolFields.ParentValue].AsString(); + set => this.Set((int)IIsMimeMapSymbolFields.ParentValue, value); + } + + public string MimeType + { + get => this.Fields[(int)IIsMimeMapSymbolFields.MimeType].AsString(); + set => this.Set((int)IIsMimeMapSymbolFields.MimeType, value); + } + + public string Extension + { + get => this.Fields[(int)IIsMimeMapSymbolFields.Extension].AsString(); + set => this.Set((int)IIsMimeMapSymbolFields.Extension, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsPropertySymbol.cs b/src/wixext/Symbols/IIsPropertySymbol.cs new file mode 100644 index 00000000..9cf67014 --- /dev/null +++ b/src/wixext/Symbols/IIsPropertySymbol.cs @@ -0,0 +1,63 @@ +// 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 IIsProperty = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsProperty.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.Value), IntermediateFieldType.String), + }, + typeof(IIsPropertySymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsPropertySymbolFields + { + ComponentRef, + Attributes, + Value, + } + + public class IIsPropertySymbol : IntermediateSymbol + { + public IIsPropertySymbol() : base(IisSymbolDefinitions.IIsProperty, null, null) + { + } + + public IIsPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsProperty, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsPropertySymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)IIsPropertySymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsPropertySymbolFields.ComponentRef, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsPropertySymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsPropertySymbolFields.Attributes, value); + } + + public string Value + { + get => this.Fields[(int)IIsPropertySymbolFields.Value].AsString(); + set => this.Set((int)IIsPropertySymbolFields.Value, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebAddressSymbol.cs b/src/wixext/Symbols/IIsWebAddressSymbol.cs new file mode 100644 index 00000000..7111718a --- /dev/null +++ b/src/wixext/Symbols/IIsWebAddressSymbol.cs @@ -0,0 +1,79 @@ +// 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 IIsWebAddress = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebAddress.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.WebRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.IP), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Port), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Header), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Secure), IntermediateFieldType.Number), + }, + typeof(IIsWebAddressSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebAddressSymbolFields + { + WebRef, + IP, + Port, + Header, + Secure, + } + + public class IIsWebAddressSymbol : IntermediateSymbol + { + public IIsWebAddressSymbol() : base(IisSymbolDefinitions.IIsWebAddress, null, null) + { + } + + public IIsWebAddressSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebAddress, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebAddressSymbolFields index] => this.Fields[(int)index]; + + public string WebRef + { + get => this.Fields[(int)IIsWebAddressSymbolFields.WebRef].AsString(); + set => this.Set((int)IIsWebAddressSymbolFields.WebRef, value); + } + + public string IP + { + get => this.Fields[(int)IIsWebAddressSymbolFields.IP].AsString(); + set => this.Set((int)IIsWebAddressSymbolFields.IP, value); + } + + public string Port + { + get => this.Fields[(int)IIsWebAddressSymbolFields.Port].AsString(); + set => this.Set((int)IIsWebAddressSymbolFields.Port, value); + } + + public string Header + { + get => this.Fields[(int)IIsWebAddressSymbolFields.Header].AsString(); + set => this.Set((int)IIsWebAddressSymbolFields.Header, value); + } + + public int? Secure + { + get => this.Fields[(int)IIsWebAddressSymbolFields.Secure].AsNullableNumber(); + set => this.Set((int)IIsWebAddressSymbolFields.Secure, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebApplicationExtensionSymbol.cs b/src/wixext/Symbols/IIsWebApplicationExtensionSymbol.cs new file mode 100644 index 00000000..4283d702 --- /dev/null +++ b/src/wixext/Symbols/IIsWebApplicationExtensionSymbol.cs @@ -0,0 +1,79 @@ +// 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 IIsWebApplicationExtension = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebApplicationExtension.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.ApplicationRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Extension), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Verbs), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Executable), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(IIsWebApplicationExtensionSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebApplicationExtensionSymbolFields + { + ApplicationRef, + Extension, + Verbs, + Executable, + Attributes, + } + + public class IIsWebApplicationExtensionSymbol : IntermediateSymbol + { + public IIsWebApplicationExtensionSymbol() : base(IisSymbolDefinitions.IIsWebApplicationExtension, null, null) + { + } + + public IIsWebApplicationExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebApplicationExtension, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebApplicationExtensionSymbolFields index] => this.Fields[(int)index]; + + public string ApplicationRef + { + get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.ApplicationRef].AsString(); + set => this.Set((int)IIsWebApplicationExtensionSymbolFields.ApplicationRef, value); + } + + public string Extension + { + get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Extension].AsString(); + set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Extension, value); + } + + public string Verbs + { + get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Verbs].AsString(); + set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Verbs, value); + } + + public string Executable + { + get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Executable].AsString(); + set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Executable, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebApplicationSymbol.cs b/src/wixext/Symbols/IIsWebApplicationSymbol.cs new file mode 100644 index 00000000..2f6f87de --- /dev/null +++ b/src/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 diff --git a/src/wixext/Symbols/IIsWebDirPropertiesSymbol.cs b/src/wixext/Symbols/IIsWebDirPropertiesSymbol.cs new file mode 100644 index 00000000..42d2dead --- /dev/null +++ b/src/wixext/Symbols/IIsWebDirPropertiesSymbol.cs @@ -0,0 +1,151 @@ +// 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 IIsWebDirProperties = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebDirProperties.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Access), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Authorization), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AnonymousUserRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.IIsControlledPassword), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.LogVisits), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Index), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.DefaultDoc), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AspDetailedError), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.HttpExpires), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlMaxAge), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlCustom), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.NoCustomError), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AccessSSLFlags), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AuthenticationProviders), IntermediateFieldType.String), + }, + typeof(IIsWebDirPropertiesSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebDirPropertiesSymbolFields + { + Access, + Authorization, + AnonymousUserRef, + IIsControlledPassword, + LogVisits, + Index, + DefaultDoc, + AspDetailedError, + HttpExpires, + CacheControlMaxAge, + CacheControlCustom, + NoCustomError, + AccessSSLFlags, + AuthenticationProviders, + } + + public class IIsWebDirPropertiesSymbol : IntermediateSymbol + { + public IIsWebDirPropertiesSymbol() : base(IisSymbolDefinitions.IIsWebDirProperties, null, null) + { + } + + public IIsWebDirPropertiesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebDirProperties, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebDirPropertiesSymbolFields index] => this.Fields[(int)index]; + + public int? Access + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Access].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.Access, value); + } + + public int? Authorization + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Authorization].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.Authorization, value); + } + + public string AnonymousUserRef + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef].AsString(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef, value); + } + + public int? IIsControlledPassword + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword, value); + } + + public int? LogVisits + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.LogVisits].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.LogVisits, value); + } + + public int? Index + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Index].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.Index, value); + } + + public string DefaultDoc + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.DefaultDoc].AsString(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.DefaultDoc, value); + } + + public int? AspDetailedError + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AspDetailedError].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.AspDetailedError, value); + } + + public string HttpExpires + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.HttpExpires].AsString(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.HttpExpires, value); + } + + public int? CacheControlMaxAge + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge, value); + } + + public string CacheControlCustom + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlCustom].AsString(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlCustom, value); + } + + public int? NoCustomError + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.NoCustomError].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.NoCustomError, value); + } + + public int? AccessSSLFlags + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags].AsNullableNumber(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags, value); + } + + public string AuthenticationProviders + { + get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders].AsString(); + set => this.Set((int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebDirSymbol.cs b/src/wixext/Symbols/IIsWebDirSymbol.cs new file mode 100644 index 00000000..7f257f14 --- /dev/null +++ b/src/wixext/Symbols/IIsWebDirSymbol.cs @@ -0,0 +1,79 @@ +// 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 IIsWebDir = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebDir.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.WebRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.Path), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.DirPropertiesRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.ApplicationRef), IntermediateFieldType.String), + }, + typeof(IIsWebDirSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebDirSymbolFields + { + ComponentRef, + WebRef, + Path, + DirPropertiesRef, + ApplicationRef, + } + + public class IIsWebDirSymbol : IntermediateSymbol + { + public IIsWebDirSymbol() : base(IisSymbolDefinitions.IIsWebDir, null, null) + { + } + + public IIsWebDirSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebDir, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebDirSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)IIsWebDirSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsWebDirSymbolFields.ComponentRef, value); + } + + public string WebRef + { + get => this.Fields[(int)IIsWebDirSymbolFields.WebRef].AsString(); + set => this.Set((int)IIsWebDirSymbolFields.WebRef, value); + } + + public string Path + { + get => this.Fields[(int)IIsWebDirSymbolFields.Path].AsString(); + set => this.Set((int)IIsWebDirSymbolFields.Path, value); + } + + public string DirPropertiesRef + { + get => this.Fields[(int)IIsWebDirSymbolFields.DirPropertiesRef].AsString(); + set => this.Set((int)IIsWebDirSymbolFields.DirPropertiesRef, value); + } + + public string ApplicationRef + { + get => this.Fields[(int)IIsWebDirSymbolFields.ApplicationRef].AsString(); + set => this.Set((int)IIsWebDirSymbolFields.ApplicationRef, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebErrorSymbol.cs b/src/wixext/Symbols/IIsWebErrorSymbol.cs new file mode 100644 index 00000000..f8488fed --- /dev/null +++ b/src/wixext/Symbols/IIsWebErrorSymbol.cs @@ -0,0 +1,87 @@ +// 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 IIsWebError = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebError.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ErrorCode), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.SubCode), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ParentType), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ParentValue), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.URL), IntermediateFieldType.String), + }, + typeof(IIsWebErrorSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebErrorSymbolFields + { + ErrorCode, + SubCode, + ParentType, + ParentValue, + File, + URL, + } + + public class IIsWebErrorSymbol : IntermediateSymbol + { + public IIsWebErrorSymbol() : base(IisSymbolDefinitions.IIsWebError, null, null) + { + } + + public IIsWebErrorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebError, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebErrorSymbolFields index] => this.Fields[(int)index]; + + public int ErrorCode + { + get => this.Fields[(int)IIsWebErrorSymbolFields.ErrorCode].AsNumber(); + set => this.Set((int)IIsWebErrorSymbolFields.ErrorCode, value); + } + + public int SubCode + { + get => this.Fields[(int)IIsWebErrorSymbolFields.SubCode].AsNumber(); + set => this.Set((int)IIsWebErrorSymbolFields.SubCode, value); + } + + public int ParentType + { + get => this.Fields[(int)IIsWebErrorSymbolFields.ParentType].AsNumber(); + set => this.Set((int)IIsWebErrorSymbolFields.ParentType, value); + } + + public string ParentValue + { + get => this.Fields[(int)IIsWebErrorSymbolFields.ParentValue].AsString(); + set => this.Set((int)IIsWebErrorSymbolFields.ParentValue, value); + } + + public string File + { + get => this.Fields[(int)IIsWebErrorSymbolFields.File].AsString(); + set => this.Set((int)IIsWebErrorSymbolFields.File, value); + } + + public string URL + { + get => this.Fields[(int)IIsWebErrorSymbolFields.URL].AsString(); + set => this.Set((int)IIsWebErrorSymbolFields.URL, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebLogSymbol.cs b/src/wixext/Symbols/IIsWebLogSymbol.cs new file mode 100644 index 00000000..409dc673 --- /dev/null +++ b/src/wixext/Symbols/IIsWebLogSymbol.cs @@ -0,0 +1,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); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebServiceExtensionSymbol.cs b/src/wixext/Symbols/IIsWebServiceExtensionSymbol.cs new file mode 100644 index 00000000..44922357 --- /dev/null +++ b/src/wixext/Symbols/IIsWebServiceExtensionSymbol.cs @@ -0,0 +1,79 @@ +// 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 IIsWebServiceExtension = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebServiceExtension.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Group), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Attributes), IntermediateFieldType.Number), + }, + typeof(IIsWebServiceExtensionSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebServiceExtensionSymbolFields + { + ComponentRef, + File, + Description, + Group, + Attributes, + } + + public class IIsWebServiceExtensionSymbol : IntermediateSymbol + { + public IIsWebServiceExtensionSymbol() : base(IisSymbolDefinitions.IIsWebServiceExtension, null, null) + { + } + + public IIsWebServiceExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebServiceExtension, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebServiceExtensionSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsWebServiceExtensionSymbolFields.ComponentRef, value); + } + + public string File + { + get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.File].AsString(); + set => this.Set((int)IIsWebServiceExtensionSymbolFields.File, value); + } + + public string Description + { + get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Description].AsString(); + set => this.Set((int)IIsWebServiceExtensionSymbolFields.Description, value); + } + + public string Group + { + get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Group].AsString(); + set => this.Set((int)IIsWebServiceExtensionSymbolFields.Group, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsWebServiceExtensionSymbolFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebSiteCertificatesSymbol.cs b/src/wixext/Symbols/IIsWebSiteCertificatesSymbol.cs new file mode 100644 index 00000000..851ce556 --- /dev/null +++ b/src/wixext/Symbols/IIsWebSiteCertificatesSymbol.cs @@ -0,0 +1,55 @@ +// 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 IIsWebSiteCertificates = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebSiteCertificates.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.WebRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.CertificateRef), IntermediateFieldType.String), + }, + typeof(IIsWebSiteCertificatesSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebSiteCertificatesSymbolFields + { + WebRef, + CertificateRef, + } + + public class IIsWebSiteCertificatesSymbol : IntermediateSymbol + { + public IIsWebSiteCertificatesSymbol() : base(IisSymbolDefinitions.IIsWebSiteCertificates, null, null) + { + } + + public IIsWebSiteCertificatesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSiteCertificates, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebSiteCertificatesSymbolFields index] => this.Fields[(int)index]; + + public string WebRef + { + get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.WebRef].AsString(); + set => this.Set((int)IIsWebSiteCertificatesSymbolFields.WebRef, value); + } + + public string CertificateRef + { + get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.CertificateRef].AsString(); + set => this.Set((int)IIsWebSiteCertificatesSymbolFields.CertificateRef, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebSiteSymbol.cs b/src/wixext/Symbols/IIsWebSiteSymbol.cs new file mode 100644 index 00000000..ceba2ea0 --- /dev/null +++ b/src/wixext/Symbols/IIsWebSiteSymbol.cs @@ -0,0 +1,135 @@ +// 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 IIsWebSite = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebSite.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ConnectionTimeout), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.State), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.KeyAddressRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirPropertiesRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ApplicationRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Sequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.LogRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.WebsiteId), IntermediateFieldType.String), + }, + typeof(IIsWebSiteSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebSiteSymbolFields + { + ComponentRef, + Description, + ConnectionTimeout, + DirectoryRef, + State, + Attributes, + KeyAddressRef, + DirPropertiesRef, + ApplicationRef, + Sequence, + LogRef, + WebsiteId, + } + + public class IIsWebSiteSymbol : IntermediateSymbol + { + public IIsWebSiteSymbol() : base(IisSymbolDefinitions.IIsWebSite, null, null) + { + } + + public IIsWebSiteSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSite, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebSiteSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.ComponentRef, value); + } + + public string Description + { + get => this.Fields[(int)IIsWebSiteSymbolFields.Description].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.Description, value); + } + + public int? ConnectionTimeout + { + get => this.Fields[(int)IIsWebSiteSymbolFields.ConnectionTimeout].AsNullableNumber(); + set => this.Set((int)IIsWebSiteSymbolFields.ConnectionTimeout, value); + } + + public string DirectoryRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.DirectoryRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.DirectoryRef, value); + } + + public int? State + { + get => this.Fields[(int)IIsWebSiteSymbolFields.State].AsNullableNumber(); + set => this.Set((int)IIsWebSiteSymbolFields.State, value); + } + + public int Attributes + { + get => this.Fields[(int)IIsWebSiteSymbolFields.Attributes].AsNumber(); + set => this.Set((int)IIsWebSiteSymbolFields.Attributes, value); + } + + public string KeyAddressRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.KeyAddressRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.KeyAddressRef, value); + } + + public string DirPropertiesRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.DirPropertiesRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.DirPropertiesRef, value); + } + + public string ApplicationRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.ApplicationRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.ApplicationRef, value); + } + + public int? Sequence + { + get => this.Fields[(int)IIsWebSiteSymbolFields.Sequence].AsNullableNumber(); + set => this.Set((int)IIsWebSiteSymbolFields.Sequence, value); + } + + public string LogRef + { + get => this.Fields[(int)IIsWebSiteSymbolFields.LogRef].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.LogRef, value); + } + + public string WebsiteId + { + get => this.Fields[(int)IIsWebSiteSymbolFields.WebsiteId].AsString(); + set => this.Set((int)IIsWebSiteSymbolFields.WebsiteId, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IIsWebVirtualDirSymbol.cs b/src/wixext/Symbols/IIsWebVirtualDirSymbol.cs new file mode 100644 index 00000000..bfc29e84 --- /dev/null +++ b/src/wixext/Symbols/IIsWebVirtualDirSymbol.cs @@ -0,0 +1,87 @@ +// 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 IIsWebVirtualDir = new IntermediateSymbolDefinition( + IisSymbolDefinitionType.IIsWebVirtualDir.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.WebRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.Alias), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirectoryRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirPropertiesRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ApplicationRef), IntermediateFieldType.String), + }, + typeof(IIsWebVirtualDirSymbol)); + } +} + +namespace WixToolset.Iis.Symbols +{ + using WixToolset.Data; + + public enum IIsWebVirtualDirSymbolFields + { + ComponentRef, + WebRef, + Alias, + DirectoryRef, + DirPropertiesRef, + ApplicationRef, + } + + public class IIsWebVirtualDirSymbol : IntermediateSymbol + { + public IIsWebVirtualDirSymbol() : base(IisSymbolDefinitions.IIsWebVirtualDir, null, null) + { + } + + public IIsWebVirtualDirSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebVirtualDir, sourceLineNumber, id) + { + } + + public IntermediateField this[IIsWebVirtualDirSymbolFields index] => this.Fields[(int)index]; + + public string ComponentRef + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ComponentRef].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.ComponentRef, value); + } + + public string WebRef + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.WebRef].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.WebRef, value); + } + + public string Alias + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.Alias].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.Alias, value); + } + + public string DirectoryRef + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirectoryRef].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.DirectoryRef, value); + } + + public string DirPropertiesRef + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirPropertiesRef].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.DirPropertiesRef, value); + } + + public string ApplicationRef + { + get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ApplicationRef].AsString(); + set => this.Set((int)IIsWebVirtualDirSymbolFields.ApplicationRef, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/IisSymbolDefinitions.cs b/src/wixext/Symbols/IisSymbolDefinitions.cs new file mode 100644 index 00000000..d6ed80a2 --- /dev/null +++ b/src/wixext/Symbols/IisSymbolDefinitions.cs @@ -0,0 +1,107 @@ +// 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 System; + using WixToolset.Data; + + public enum IisSymbolDefinitionType + { + Certificate, + CertificateHash, + IIsAppPool, + IIsFilter, + IIsHttpHeader, + IIsMimeMap, + IIsProperty, + IIsWebAddress, + IIsWebApplication, + IIsWebApplicationExtension, + IIsWebDir, + IIsWebDirProperties, + IIsWebError, + IIsWebLog, + IIsWebServiceExtension, + IIsWebSite, + IIsWebSiteCertificates, + IIsWebVirtualDir, + } + + public static partial class IisSymbolDefinitions + { + public static readonly Version Version = new Version("4.0.0"); + + public static IntermediateSymbolDefinition ByName(string name) + { + if (!Enum.TryParse(name, out IisSymbolDefinitionType type)) + { + return null; + } + + return ByType(type); + } + + public static IntermediateSymbolDefinition ByType(IisSymbolDefinitionType type) + { + switch (type) + { + case IisSymbolDefinitionType.Certificate: + return IisSymbolDefinitions.Certificate; + + case IisSymbolDefinitionType.CertificateHash: + return IisSymbolDefinitions.CertificateHash; + + case IisSymbolDefinitionType.IIsAppPool: + return IisSymbolDefinitions.IIsAppPool; + + case IisSymbolDefinitionType.IIsFilter: + return IisSymbolDefinitions.IIsFilter; + + case IisSymbolDefinitionType.IIsHttpHeader: + return IisSymbolDefinitions.IIsHttpHeader; + + case IisSymbolDefinitionType.IIsMimeMap: + return IisSymbolDefinitions.IIsMimeMap; + + case IisSymbolDefinitionType.IIsProperty: + return IisSymbolDefinitions.IIsProperty; + + case IisSymbolDefinitionType.IIsWebAddress: + return IisSymbolDefinitions.IIsWebAddress; + + case IisSymbolDefinitionType.IIsWebApplication: + return IisSymbolDefinitions.IIsWebApplication; + + case IisSymbolDefinitionType.IIsWebApplicationExtension: + return IisSymbolDefinitions.IIsWebApplicationExtension; + + case IisSymbolDefinitionType.IIsWebDir: + return IisSymbolDefinitions.IIsWebDir; + + case IisSymbolDefinitionType.IIsWebDirProperties: + return IisSymbolDefinitions.IIsWebDirProperties; + + case IisSymbolDefinitionType.IIsWebError: + return IisSymbolDefinitions.IIsWebError; + + case IisSymbolDefinitionType.IIsWebLog: + return IisSymbolDefinitions.IIsWebLog; + + case IisSymbolDefinitionType.IIsWebServiceExtension: + return IisSymbolDefinitions.IIsWebServiceExtension; + + case IisSymbolDefinitionType.IIsWebSite: + return IisSymbolDefinitions.IIsWebSite; + + case IisSymbolDefinitionType.IIsWebSiteCertificates: + return IisSymbolDefinitions.IIsWebSiteCertificates; + + case IisSymbolDefinitionType.IIsWebVirtualDir: + return IisSymbolDefinitions.IIsWebVirtualDir; + + default: + throw new ArgumentOutOfRangeException(nameof(type)); + } + } + } +} diff --git a/src/wixext/Tuples/CertificateHashTuple.cs b/src/wixext/Tuples/CertificateHashTuple.cs deleted file mode 100644 index 866d474c..00000000 --- a/src/wixext/Tuples/CertificateHashTuple.cs +++ /dev/null @@ -1,55 +0,0 @@ -// 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 CertificateHash = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.CertificateHash.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(CertificateHashSymbolFields.CertificateRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateHashSymbolFields.Hash), IntermediateFieldType.String), - }, - typeof(CertificateHashSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum CertificateHashSymbolFields - { - CertificateRef, - Hash, - } - - public class CertificateHashSymbol : IntermediateSymbol - { - public CertificateHashSymbol() : base(IisSymbolDefinitions.CertificateHash, null, null) - { - } - - public CertificateHashSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.CertificateHash, sourceLineNumber, id) - { - } - - public IntermediateField this[CertificateHashSymbolFields index] => this.Fields[(int)index]; - - public string CertificateRef - { - get => this.Fields[(int)CertificateHashSymbolFields.CertificateRef].AsString(); - set => this.Set((int)CertificateHashSymbolFields.CertificateRef, value); - } - - public string Hash - { - get => this.Fields[(int)CertificateHashSymbolFields.Hash].AsString(); - set => this.Set((int)CertificateHashSymbolFields.Hash, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/CertificateTuple.cs b/src/wixext/Tuples/CertificateTuple.cs deleted file mode 100644 index b80b6ba4..00000000 --- a/src/wixext/Tuples/CertificateTuple.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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 Certificate = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.Certificate.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.StoreLocation), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.StoreName), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.BinaryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.CertificatePath), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(CertificateSymbolFields.PFXPassword), IntermediateFieldType.String), - }, - typeof(CertificateSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum CertificateSymbolFields - { - ComponentRef, - Name, - StoreLocation, - StoreName, - Attributes, - BinaryRef, - CertificatePath, - PFXPassword, - } - - public class CertificateSymbol : IntermediateSymbol - { - public CertificateSymbol() : base(IisSymbolDefinitions.Certificate, null, null) - { - } - - public CertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.Certificate, sourceLineNumber, id) - { - } - - public IntermediateField this[CertificateSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)CertificateSymbolFields.ComponentRef].AsString(); - set => this.Set((int)CertificateSymbolFields.ComponentRef, value); - } - - public string Name - { - get => this.Fields[(int)CertificateSymbolFields.Name].AsString(); - set => this.Set((int)CertificateSymbolFields.Name, value); - } - - public int StoreLocation - { - get => this.Fields[(int)CertificateSymbolFields.StoreLocation].AsNumber(); - set => this.Set((int)CertificateSymbolFields.StoreLocation, value); - } - - public string StoreName - { - get => this.Fields[(int)CertificateSymbolFields.StoreName].AsString(); - set => this.Set((int)CertificateSymbolFields.StoreName, value); - } - - public int Attributes - { - get => this.Fields[(int)CertificateSymbolFields.Attributes].AsNumber(); - set => this.Set((int)CertificateSymbolFields.Attributes, value); - } - - public string BinaryRef - { - get => this.Fields[(int)CertificateSymbolFields.BinaryRef].AsString(); - set => this.Set((int)CertificateSymbolFields.BinaryRef, value); - } - - public string CertificatePath - { - get => this.Fields[(int)CertificateSymbolFields.CertificatePath].AsString(); - set => this.Set((int)CertificateSymbolFields.CertificatePath, value); - } - - public string PFXPassword - { - get => this.Fields[(int)CertificateSymbolFields.PFXPassword].AsString(); - set => this.Set((int)CertificateSymbolFields.PFXPassword, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsAppPoolTuple.cs b/src/wixext/Tuples/IIsAppPoolTuple.cs deleted file mode 100644 index a6fab136..00000000 --- a/src/wixext/Tuples/IIsAppPoolTuple.cs +++ /dev/null @@ -1,159 +0,0 @@ -// 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 IIsAppPool = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsAppPool.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.UserRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleMinutes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleRequests), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.RecycleTimes), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.IdleTimeout), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.QueueLimit), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.CPUMon), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.MaxProc), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.VirtualMemory), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.PrivateMemory), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedRuntimeVersion), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsAppPoolSymbolFields.ManagedPipelineMode), IntermediateFieldType.String), - }, - typeof(IIsAppPoolSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsAppPoolSymbolFields - { - Name, - ComponentRef, - Attributes, - UserRef, - RecycleMinutes, - RecycleRequests, - RecycleTimes, - IdleTimeout, - QueueLimit, - CPUMon, - MaxProc, - VirtualMemory, - PrivateMemory, - ManagedRuntimeVersion, - ManagedPipelineMode, - } - - public class IIsAppPoolSymbol : IntermediateSymbol - { - public IIsAppPoolSymbol() : base(IisSymbolDefinitions.IIsAppPool, null, null) - { - } - - public IIsAppPoolSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsAppPool, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsAppPoolSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => this.Fields[(int)IIsAppPoolSymbolFields.Name].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.Name, value); - } - - public string ComponentRef - { - get => this.Fields[(int)IIsAppPoolSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.ComponentRef, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsAppPoolSymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.Attributes, value); - } - - public string UserRef - { - get => this.Fields[(int)IIsAppPoolSymbolFields.UserRef].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.UserRef, value); - } - - public int? RecycleMinutes - { - get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleMinutes].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.RecycleMinutes, value); - } - - public int? RecycleRequests - { - get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleRequests].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.RecycleRequests, value); - } - - public string RecycleTimes - { - get => this.Fields[(int)IIsAppPoolSymbolFields.RecycleTimes].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.RecycleTimes, value); - } - - public int? IdleTimeout - { - get => this.Fields[(int)IIsAppPoolSymbolFields.IdleTimeout].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.IdleTimeout, value); - } - - public int? QueueLimit - { - get => this.Fields[(int)IIsAppPoolSymbolFields.QueueLimit].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.QueueLimit, value); - } - - public string CPUMon - { - get => this.Fields[(int)IIsAppPoolSymbolFields.CPUMon].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.CPUMon, value); - } - - public int? MaxProc - { - get => this.Fields[(int)IIsAppPoolSymbolFields.MaxProc].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.MaxProc, value); - } - - public int? VirtualMemory - { - get => this.Fields[(int)IIsAppPoolSymbolFields.VirtualMemory].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.VirtualMemory, value); - } - - public int? PrivateMemory - { - get => this.Fields[(int)IIsAppPoolSymbolFields.PrivateMemory].AsNullableNumber(); - set => this.Set((int)IIsAppPoolSymbolFields.PrivateMemory, value); - } - - public string ManagedRuntimeVersion - { - get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedRuntimeVersion].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.ManagedRuntimeVersion, value); - } - - public string ManagedPipelineMode - { - get => this.Fields[(int)IIsAppPoolSymbolFields.ManagedPipelineMode].AsString(); - set => this.Set((int)IIsAppPoolSymbolFields.ManagedPipelineMode, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsFilterTuple.cs b/src/wixext/Tuples/IIsFilterTuple.cs deleted file mode 100644 index 618730bf..00000000 --- a/src/wixext/Tuples/IIsFilterTuple.cs +++ /dev/null @@ -1,95 +0,0 @@ -// 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 IIsFilter = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsFilter.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Path), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.WebRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.Flags), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsFilterSymbolFields.LoadOrder), IntermediateFieldType.Number), - }, - typeof(IIsFilterSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsFilterSymbolFields - { - Name, - ComponentRef, - Path, - WebRef, - Description, - Flags, - LoadOrder, - } - - public class IIsFilterSymbol : IntermediateSymbol - { - public IIsFilterSymbol() : base(IisSymbolDefinitions.IIsFilter, null, null) - { - } - - public IIsFilterSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsFilter, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsFilterSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => this.Fields[(int)IIsFilterSymbolFields.Name].AsString(); - set => this.Set((int)IIsFilterSymbolFields.Name, value); - } - - public string ComponentRef - { - get => this.Fields[(int)IIsFilterSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsFilterSymbolFields.ComponentRef, value); - } - - public string Path - { - get => this.Fields[(int)IIsFilterSymbolFields.Path].AsString(); - set => this.Set((int)IIsFilterSymbolFields.Path, value); - } - - public string WebRef - { - get => this.Fields[(int)IIsFilterSymbolFields.WebRef].AsString(); - set => this.Set((int)IIsFilterSymbolFields.WebRef, value); - } - - public string Description - { - get => this.Fields[(int)IIsFilterSymbolFields.Description].AsString(); - set => this.Set((int)IIsFilterSymbolFields.Description, value); - } - - public int Flags - { - get => this.Fields[(int)IIsFilterSymbolFields.Flags].AsNumber(); - set => this.Set((int)IIsFilterSymbolFields.Flags, value); - } - - public int? LoadOrder - { - get => this.Fields[(int)IIsFilterSymbolFields.LoadOrder].AsNullableNumber(); - set => this.Set((int)IIsFilterSymbolFields.LoadOrder, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsHttpHeaderTuple.cs b/src/wixext/Tuples/IIsHttpHeaderTuple.cs deleted file mode 100644 index 3ab2bf59..00000000 --- a/src/wixext/Tuples/IIsHttpHeaderTuple.cs +++ /dev/null @@ -1,95 +0,0 @@ -// 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 IIsHttpHeader = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsHttpHeader.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.HttpHeader), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.ParentType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.ParentValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Name), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Value), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsHttpHeaderSymbolFields.Sequence), IntermediateFieldType.Number), - }, - typeof(IIsHttpHeaderSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsHttpHeaderSymbolFields - { - HttpHeader, - ParentType, - ParentValue, - Name, - Value, - Attributes, - Sequence, - } - - public class IIsHttpHeaderSymbol : IntermediateSymbol - { - public IIsHttpHeaderSymbol() : base(IisSymbolDefinitions.IIsHttpHeader, null, null) - { - } - - public IIsHttpHeaderSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsHttpHeader, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsHttpHeaderSymbolFields index] => this.Fields[(int)index]; - - public string HttpHeader - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.HttpHeader].AsString(); - set => this.Set((int)IIsHttpHeaderSymbolFields.HttpHeader, value); - } - - public int ParentType - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.ParentType].AsNumber(); - set => this.Set((int)IIsHttpHeaderSymbolFields.ParentType, value); - } - - public string ParentValue - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.ParentValue].AsString(); - set => this.Set((int)IIsHttpHeaderSymbolFields.ParentValue, value); - } - - public string Name - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.Name].AsString(); - set => this.Set((int)IIsHttpHeaderSymbolFields.Name, value); - } - - public string Value - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.Value].AsString(); - set => this.Set((int)IIsHttpHeaderSymbolFields.Value, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsHttpHeaderSymbolFields.Attributes, value); - } - - public int? Sequence - { - get => this.Fields[(int)IIsHttpHeaderSymbolFields.Sequence].AsNullableNumber(); - set => this.Set((int)IIsHttpHeaderSymbolFields.Sequence, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsMimeMapTuple.cs b/src/wixext/Tuples/IIsMimeMapTuple.cs deleted file mode 100644 index 4af6f81c..00000000 --- a/src/wixext/Tuples/IIsMimeMapTuple.cs +++ /dev/null @@ -1,71 +0,0 @@ -// 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 IIsMimeMap = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsMimeMap.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.ParentType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.ParentValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.MimeType), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsMimeMapSymbolFields.Extension), IntermediateFieldType.String), - }, - typeof(IIsMimeMapSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsMimeMapSymbolFields - { - ParentType, - ParentValue, - MimeType, - Extension, - } - - public class IIsMimeMapSymbol : IntermediateSymbol - { - public IIsMimeMapSymbol() : base(IisSymbolDefinitions.IIsMimeMap, null, null) - { - } - - public IIsMimeMapSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsMimeMap, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsMimeMapSymbolFields index] => this.Fields[(int)index]; - - public int ParentType - { - get => this.Fields[(int)IIsMimeMapSymbolFields.ParentType].AsNumber(); - set => this.Set((int)IIsMimeMapSymbolFields.ParentType, value); - } - - public string ParentValue - { - get => this.Fields[(int)IIsMimeMapSymbolFields.ParentValue].AsString(); - set => this.Set((int)IIsMimeMapSymbolFields.ParentValue, value); - } - - public string MimeType - { - get => this.Fields[(int)IIsMimeMapSymbolFields.MimeType].AsString(); - set => this.Set((int)IIsMimeMapSymbolFields.MimeType, value); - } - - public string Extension - { - get => this.Fields[(int)IIsMimeMapSymbolFields.Extension].AsString(); - set => this.Set((int)IIsMimeMapSymbolFields.Extension, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsPropertyTuple.cs b/src/wixext/Tuples/IIsPropertyTuple.cs deleted file mode 100644 index 9cf67014..00000000 --- a/src/wixext/Tuples/IIsPropertyTuple.cs +++ /dev/null @@ -1,63 +0,0 @@ -// 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 IIsProperty = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsProperty.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsPropertySymbolFields.Value), IntermediateFieldType.String), - }, - typeof(IIsPropertySymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsPropertySymbolFields - { - ComponentRef, - Attributes, - Value, - } - - public class IIsPropertySymbol : IntermediateSymbol - { - public IIsPropertySymbol() : base(IisSymbolDefinitions.IIsProperty, null, null) - { - } - - public IIsPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsProperty, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsPropertySymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)IIsPropertySymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsPropertySymbolFields.ComponentRef, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsPropertySymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsPropertySymbolFields.Attributes, value); - } - - public string Value - { - get => this.Fields[(int)IIsPropertySymbolFields.Value].AsString(); - set => this.Set((int)IIsPropertySymbolFields.Value, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebAddressTuple.cs b/src/wixext/Tuples/IIsWebAddressTuple.cs deleted file mode 100644 index 7111718a..00000000 --- a/src/wixext/Tuples/IIsWebAddressTuple.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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 IIsWebAddress = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebAddress.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.WebRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.IP), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Port), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Header), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebAddressSymbolFields.Secure), IntermediateFieldType.Number), - }, - typeof(IIsWebAddressSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebAddressSymbolFields - { - WebRef, - IP, - Port, - Header, - Secure, - } - - public class IIsWebAddressSymbol : IntermediateSymbol - { - public IIsWebAddressSymbol() : base(IisSymbolDefinitions.IIsWebAddress, null, null) - { - } - - public IIsWebAddressSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebAddress, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebAddressSymbolFields index] => this.Fields[(int)index]; - - public string WebRef - { - get => this.Fields[(int)IIsWebAddressSymbolFields.WebRef].AsString(); - set => this.Set((int)IIsWebAddressSymbolFields.WebRef, value); - } - - public string IP - { - get => this.Fields[(int)IIsWebAddressSymbolFields.IP].AsString(); - set => this.Set((int)IIsWebAddressSymbolFields.IP, value); - } - - public string Port - { - get => this.Fields[(int)IIsWebAddressSymbolFields.Port].AsString(); - set => this.Set((int)IIsWebAddressSymbolFields.Port, value); - } - - public string Header - { - get => this.Fields[(int)IIsWebAddressSymbolFields.Header].AsString(); - set => this.Set((int)IIsWebAddressSymbolFields.Header, value); - } - - public int? Secure - { - get => this.Fields[(int)IIsWebAddressSymbolFields.Secure].AsNullableNumber(); - set => this.Set((int)IIsWebAddressSymbolFields.Secure, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebApplicationExtensionTuple.cs b/src/wixext/Tuples/IIsWebApplicationExtensionTuple.cs deleted file mode 100644 index 4283d702..00000000 --- a/src/wixext/Tuples/IIsWebApplicationExtensionTuple.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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 IIsWebApplicationExtension = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebApplicationExtension.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.ApplicationRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Extension), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Verbs), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Executable), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebApplicationExtensionSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(IIsWebApplicationExtensionSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebApplicationExtensionSymbolFields - { - ApplicationRef, - Extension, - Verbs, - Executable, - Attributes, - } - - public class IIsWebApplicationExtensionSymbol : IntermediateSymbol - { - public IIsWebApplicationExtensionSymbol() : base(IisSymbolDefinitions.IIsWebApplicationExtension, null, null) - { - } - - public IIsWebApplicationExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebApplicationExtension, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebApplicationExtensionSymbolFields index] => this.Fields[(int)index]; - - public string ApplicationRef - { - get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.ApplicationRef].AsString(); - set => this.Set((int)IIsWebApplicationExtensionSymbolFields.ApplicationRef, value); - } - - public string Extension - { - get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Extension].AsString(); - set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Extension, value); - } - - public string Verbs - { - get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Verbs].AsString(); - set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Verbs, value); - } - - public string Executable - { - get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Executable].AsString(); - set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Executable, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsWebApplicationExtensionSymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsWebApplicationExtensionSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebApplicationTuple.cs b/src/wixext/Tuples/IIsWebApplicationTuple.cs deleted file mode 100644 index 2f6f87de..00000000 --- a/src/wixext/Tuples/IIsWebApplicationTuple.cs +++ /dev/null @@ -1,127 +0,0 @@ -// 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 diff --git a/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs b/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs deleted file mode 100644 index 42d2dead..00000000 --- a/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs +++ /dev/null @@ -1,151 +0,0 @@ -// 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 IIsWebDirProperties = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebDirProperties.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Access), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Authorization), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AnonymousUserRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.IIsControlledPassword), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.LogVisits), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Index), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.DefaultDoc), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AspDetailedError), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.HttpExpires), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlMaxAge), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlCustom), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.NoCustomError), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AccessSSLFlags), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AuthenticationProviders), IntermediateFieldType.String), - }, - typeof(IIsWebDirPropertiesSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebDirPropertiesSymbolFields - { - Access, - Authorization, - AnonymousUserRef, - IIsControlledPassword, - LogVisits, - Index, - DefaultDoc, - AspDetailedError, - HttpExpires, - CacheControlMaxAge, - CacheControlCustom, - NoCustomError, - AccessSSLFlags, - AuthenticationProviders, - } - - public class IIsWebDirPropertiesSymbol : IntermediateSymbol - { - public IIsWebDirPropertiesSymbol() : base(IisSymbolDefinitions.IIsWebDirProperties, null, null) - { - } - - public IIsWebDirPropertiesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebDirProperties, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebDirPropertiesSymbolFields index] => this.Fields[(int)index]; - - public int? Access - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Access].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.Access, value); - } - - public int? Authorization - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Authorization].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.Authorization, value); - } - - public string AnonymousUserRef - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef].AsString(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef, value); - } - - public int? IIsControlledPassword - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword, value); - } - - public int? LogVisits - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.LogVisits].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.LogVisits, value); - } - - public int? Index - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Index].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.Index, value); - } - - public string DefaultDoc - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.DefaultDoc].AsString(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.DefaultDoc, value); - } - - public int? AspDetailedError - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AspDetailedError].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.AspDetailedError, value); - } - - public string HttpExpires - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.HttpExpires].AsString(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.HttpExpires, value); - } - - public int? CacheControlMaxAge - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge, value); - } - - public string CacheControlCustom - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlCustom].AsString(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlCustom, value); - } - - public int? NoCustomError - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.NoCustomError].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.NoCustomError, value); - } - - public int? AccessSSLFlags - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags].AsNullableNumber(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags, value); - } - - public string AuthenticationProviders - { - get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders].AsString(); - set => this.Set((int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebDirTuple.cs b/src/wixext/Tuples/IIsWebDirTuple.cs deleted file mode 100644 index 7f257f14..00000000 --- a/src/wixext/Tuples/IIsWebDirTuple.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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 IIsWebDir = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebDir.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.WebRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.Path), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.DirPropertiesRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebDirSymbolFields.ApplicationRef), IntermediateFieldType.String), - }, - typeof(IIsWebDirSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebDirSymbolFields - { - ComponentRef, - WebRef, - Path, - DirPropertiesRef, - ApplicationRef, - } - - public class IIsWebDirSymbol : IntermediateSymbol - { - public IIsWebDirSymbol() : base(IisSymbolDefinitions.IIsWebDir, null, null) - { - } - - public IIsWebDirSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebDir, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebDirSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)IIsWebDirSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsWebDirSymbolFields.ComponentRef, value); - } - - public string WebRef - { - get => this.Fields[(int)IIsWebDirSymbolFields.WebRef].AsString(); - set => this.Set((int)IIsWebDirSymbolFields.WebRef, value); - } - - public string Path - { - get => this.Fields[(int)IIsWebDirSymbolFields.Path].AsString(); - set => this.Set((int)IIsWebDirSymbolFields.Path, value); - } - - public string DirPropertiesRef - { - get => this.Fields[(int)IIsWebDirSymbolFields.DirPropertiesRef].AsString(); - set => this.Set((int)IIsWebDirSymbolFields.DirPropertiesRef, value); - } - - public string ApplicationRef - { - get => this.Fields[(int)IIsWebDirSymbolFields.ApplicationRef].AsString(); - set => this.Set((int)IIsWebDirSymbolFields.ApplicationRef, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebErrorTuple.cs b/src/wixext/Tuples/IIsWebErrorTuple.cs deleted file mode 100644 index f8488fed..00000000 --- a/src/wixext/Tuples/IIsWebErrorTuple.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 IIsWebError = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebError.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ErrorCode), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.SubCode), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ParentType), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.ParentValue), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.File), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebErrorSymbolFields.URL), IntermediateFieldType.String), - }, - typeof(IIsWebErrorSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebErrorSymbolFields - { - ErrorCode, - SubCode, - ParentType, - ParentValue, - File, - URL, - } - - public class IIsWebErrorSymbol : IntermediateSymbol - { - public IIsWebErrorSymbol() : base(IisSymbolDefinitions.IIsWebError, null, null) - { - } - - public IIsWebErrorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebError, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebErrorSymbolFields index] => this.Fields[(int)index]; - - public int ErrorCode - { - get => this.Fields[(int)IIsWebErrorSymbolFields.ErrorCode].AsNumber(); - set => this.Set((int)IIsWebErrorSymbolFields.ErrorCode, value); - } - - public int SubCode - { - get => this.Fields[(int)IIsWebErrorSymbolFields.SubCode].AsNumber(); - set => this.Set((int)IIsWebErrorSymbolFields.SubCode, value); - } - - public int ParentType - { - get => this.Fields[(int)IIsWebErrorSymbolFields.ParentType].AsNumber(); - set => this.Set((int)IIsWebErrorSymbolFields.ParentType, value); - } - - public string ParentValue - { - get => this.Fields[(int)IIsWebErrorSymbolFields.ParentValue].AsString(); - set => this.Set((int)IIsWebErrorSymbolFields.ParentValue, value); - } - - public string File - { - get => this.Fields[(int)IIsWebErrorSymbolFields.File].AsString(); - set => this.Set((int)IIsWebErrorSymbolFields.File, value); - } - - public string URL - { - get => this.Fields[(int)IIsWebErrorSymbolFields.URL].AsString(); - set => this.Set((int)IIsWebErrorSymbolFields.URL, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebLogTuple.cs b/src/wixext/Tuples/IIsWebLogTuple.cs deleted file mode 100644 index 409dc673..00000000 --- a/src/wixext/Tuples/IIsWebLogTuple.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebServiceExtensionTuple.cs b/src/wixext/Tuples/IIsWebServiceExtensionTuple.cs deleted file mode 100644 index 44922357..00000000 --- a/src/wixext/Tuples/IIsWebServiceExtensionTuple.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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 IIsWebServiceExtension = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebServiceExtension.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.File), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Group), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebServiceExtensionSymbolFields.Attributes), IntermediateFieldType.Number), - }, - typeof(IIsWebServiceExtensionSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebServiceExtensionSymbolFields - { - ComponentRef, - File, - Description, - Group, - Attributes, - } - - public class IIsWebServiceExtensionSymbol : IntermediateSymbol - { - public IIsWebServiceExtensionSymbol() : base(IisSymbolDefinitions.IIsWebServiceExtension, null, null) - { - } - - public IIsWebServiceExtensionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebServiceExtension, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebServiceExtensionSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsWebServiceExtensionSymbolFields.ComponentRef, value); - } - - public string File - { - get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.File].AsString(); - set => this.Set((int)IIsWebServiceExtensionSymbolFields.File, value); - } - - public string Description - { - get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Description].AsString(); - set => this.Set((int)IIsWebServiceExtensionSymbolFields.Description, value); - } - - public string Group - { - get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Group].AsString(); - set => this.Set((int)IIsWebServiceExtensionSymbolFields.Group, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsWebServiceExtensionSymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsWebServiceExtensionSymbolFields.Attributes, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs b/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs deleted file mode 100644 index 851ce556..00000000 --- a/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs +++ /dev/null @@ -1,55 +0,0 @@ -// 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 IIsWebSiteCertificates = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebSiteCertificates.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.WebRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.CertificateRef), IntermediateFieldType.String), - }, - typeof(IIsWebSiteCertificatesSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebSiteCertificatesSymbolFields - { - WebRef, - CertificateRef, - } - - public class IIsWebSiteCertificatesSymbol : IntermediateSymbol - { - public IIsWebSiteCertificatesSymbol() : base(IisSymbolDefinitions.IIsWebSiteCertificates, null, null) - { - } - - public IIsWebSiteCertificatesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSiteCertificates, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebSiteCertificatesSymbolFields index] => this.Fields[(int)index]; - - public string WebRef - { - get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.WebRef].AsString(); - set => this.Set((int)IIsWebSiteCertificatesSymbolFields.WebRef, value); - } - - public string CertificateRef - { - get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.CertificateRef].AsString(); - set => this.Set((int)IIsWebSiteCertificatesSymbolFields.CertificateRef, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebSiteTuple.cs b/src/wixext/Tuples/IIsWebSiteTuple.cs deleted file mode 100644 index ceba2ea0..00000000 --- a/src/wixext/Tuples/IIsWebSiteTuple.cs +++ /dev/null @@ -1,135 +0,0 @@ -// 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 IIsWebSite = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebSite.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Description), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ConnectionTimeout), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.State), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Attributes), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.KeyAddressRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirPropertiesRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ApplicationRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Sequence), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.LogRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.WebsiteId), IntermediateFieldType.String), - }, - typeof(IIsWebSiteSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebSiteSymbolFields - { - ComponentRef, - Description, - ConnectionTimeout, - DirectoryRef, - State, - Attributes, - KeyAddressRef, - DirPropertiesRef, - ApplicationRef, - Sequence, - LogRef, - WebsiteId, - } - - public class IIsWebSiteSymbol : IntermediateSymbol - { - public IIsWebSiteSymbol() : base(IisSymbolDefinitions.IIsWebSite, null, null) - { - } - - public IIsWebSiteSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSite, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebSiteSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.ComponentRef, value); - } - - public string Description - { - get => this.Fields[(int)IIsWebSiteSymbolFields.Description].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.Description, value); - } - - public int? ConnectionTimeout - { - get => this.Fields[(int)IIsWebSiteSymbolFields.ConnectionTimeout].AsNullableNumber(); - set => this.Set((int)IIsWebSiteSymbolFields.ConnectionTimeout, value); - } - - public string DirectoryRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.DirectoryRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.DirectoryRef, value); - } - - public int? State - { - get => this.Fields[(int)IIsWebSiteSymbolFields.State].AsNullableNumber(); - set => this.Set((int)IIsWebSiteSymbolFields.State, value); - } - - public int Attributes - { - get => this.Fields[(int)IIsWebSiteSymbolFields.Attributes].AsNumber(); - set => this.Set((int)IIsWebSiteSymbolFields.Attributes, value); - } - - public string KeyAddressRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.KeyAddressRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.KeyAddressRef, value); - } - - public string DirPropertiesRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.DirPropertiesRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.DirPropertiesRef, value); - } - - public string ApplicationRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.ApplicationRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.ApplicationRef, value); - } - - public int? Sequence - { - get => this.Fields[(int)IIsWebSiteSymbolFields.Sequence].AsNullableNumber(); - set => this.Set((int)IIsWebSiteSymbolFields.Sequence, value); - } - - public string LogRef - { - get => this.Fields[(int)IIsWebSiteSymbolFields.LogRef].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.LogRef, value); - } - - public string WebsiteId - { - get => this.Fields[(int)IIsWebSiteSymbolFields.WebsiteId].AsString(); - set => this.Set((int)IIsWebSiteSymbolFields.WebsiteId, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IIsWebVirtualDirTuple.cs b/src/wixext/Tuples/IIsWebVirtualDirTuple.cs deleted file mode 100644 index bfc29e84..00000000 --- a/src/wixext/Tuples/IIsWebVirtualDirTuple.cs +++ /dev/null @@ -1,87 +0,0 @@ -// 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 IIsWebVirtualDir = new IntermediateSymbolDefinition( - IisSymbolDefinitionType.IIsWebVirtualDir.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ComponentRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.WebRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.Alias), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirPropertiesRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ApplicationRef), IntermediateFieldType.String), - }, - typeof(IIsWebVirtualDirSymbol)); - } -} - -namespace WixToolset.Iis.Symbols -{ - using WixToolset.Data; - - public enum IIsWebVirtualDirSymbolFields - { - ComponentRef, - WebRef, - Alias, - DirectoryRef, - DirPropertiesRef, - ApplicationRef, - } - - public class IIsWebVirtualDirSymbol : IntermediateSymbol - { - public IIsWebVirtualDirSymbol() : base(IisSymbolDefinitions.IIsWebVirtualDir, null, null) - { - } - - public IIsWebVirtualDirSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebVirtualDir, sourceLineNumber, id) - { - } - - public IntermediateField this[IIsWebVirtualDirSymbolFields index] => this.Fields[(int)index]; - - public string ComponentRef - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ComponentRef].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.ComponentRef, value); - } - - public string WebRef - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.WebRef].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.WebRef, value); - } - - public string Alias - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.Alias].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.Alias, value); - } - - public string DirectoryRef - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirectoryRef].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.DirectoryRef, value); - } - - public string DirPropertiesRef - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirPropertiesRef].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.DirPropertiesRef, value); - } - - public string ApplicationRef - { - get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ApplicationRef].AsString(); - set => this.Set((int)IIsWebVirtualDirSymbolFields.ApplicationRef, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/IisTupleDefinitions.cs b/src/wixext/Tuples/IisTupleDefinitions.cs deleted file mode 100644 index d6ed80a2..00000000 --- a/src/wixext/Tuples/IisTupleDefinitions.cs +++ /dev/null @@ -1,107 +0,0 @@ -// 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 System; - using WixToolset.Data; - - public enum IisSymbolDefinitionType - { - Certificate, - CertificateHash, - IIsAppPool, - IIsFilter, - IIsHttpHeader, - IIsMimeMap, - IIsProperty, - IIsWebAddress, - IIsWebApplication, - IIsWebApplicationExtension, - IIsWebDir, - IIsWebDirProperties, - IIsWebError, - IIsWebLog, - IIsWebServiceExtension, - IIsWebSite, - IIsWebSiteCertificates, - IIsWebVirtualDir, - } - - public static partial class IisSymbolDefinitions - { - public static readonly Version Version = new Version("4.0.0"); - - public static IntermediateSymbolDefinition ByName(string name) - { - if (!Enum.TryParse(name, out IisSymbolDefinitionType type)) - { - return null; - } - - return ByType(type); - } - - public static IntermediateSymbolDefinition ByType(IisSymbolDefinitionType type) - { - switch (type) - { - case IisSymbolDefinitionType.Certificate: - return IisSymbolDefinitions.Certificate; - - case IisSymbolDefinitionType.CertificateHash: - return IisSymbolDefinitions.CertificateHash; - - case IisSymbolDefinitionType.IIsAppPool: - return IisSymbolDefinitions.IIsAppPool; - - case IisSymbolDefinitionType.IIsFilter: - return IisSymbolDefinitions.IIsFilter; - - case IisSymbolDefinitionType.IIsHttpHeader: - return IisSymbolDefinitions.IIsHttpHeader; - - case IisSymbolDefinitionType.IIsMimeMap: - return IisSymbolDefinitions.IIsMimeMap; - - case IisSymbolDefinitionType.IIsProperty: - return IisSymbolDefinitions.IIsProperty; - - case IisSymbolDefinitionType.IIsWebAddress: - return IisSymbolDefinitions.IIsWebAddress; - - case IisSymbolDefinitionType.IIsWebApplication: - return IisSymbolDefinitions.IIsWebApplication; - - case IisSymbolDefinitionType.IIsWebApplicationExtension: - return IisSymbolDefinitions.IIsWebApplicationExtension; - - case IisSymbolDefinitionType.IIsWebDir: - return IisSymbolDefinitions.IIsWebDir; - - case IisSymbolDefinitionType.IIsWebDirProperties: - return IisSymbolDefinitions.IIsWebDirProperties; - - case IisSymbolDefinitionType.IIsWebError: - return IisSymbolDefinitions.IIsWebError; - - case IisSymbolDefinitionType.IIsWebLog: - return IisSymbolDefinitions.IIsWebLog; - - case IisSymbolDefinitionType.IIsWebServiceExtension: - return IisSymbolDefinitions.IIsWebServiceExtension; - - case IisSymbolDefinitionType.IIsWebSite: - return IisSymbolDefinitions.IIsWebSite; - - case IisSymbolDefinitionType.IIsWebSiteCertificates: - return IisSymbolDefinitions.IIsWebSiteCertificates; - - case IisSymbolDefinitionType.IIsWebVirtualDir: - return IisSymbolDefinitions.IIsWebVirtualDir; - - default: - throw new ArgumentOutOfRangeException(nameof(type)); - } - } - } -} -- cgit v1.2.3-55-g6feb