| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Iis |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Iis.Symbols; |
| 7 | |
| 8 | public static partial class IisSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition IIsWebSite = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsWebSite.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Description), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ConnectionTimeout), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirectoryRef), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.State), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Attributes), IntermediateFieldType.Number), |
| 20 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.KeyAddressRef), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.DirPropertiesRef), IntermediateFieldType.String), |
| 22 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.ApplicationRef), IntermediateFieldType.String), |
| 23 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.Sequence), IntermediateFieldType.Number), |
| 24 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.LogRef), IntermediateFieldType.String), |
| 25 | new IntermediateFieldDefinition(nameof(IIsWebSiteSymbolFields.WebsiteId), IntermediateFieldType.String), |
| 26 | }, |
| 27 | typeof(IIsWebSiteSymbol)); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | namespace WixToolset.Iis.Symbols |
| 32 | { |
| 33 | using WixToolset.Data; |
| 34 | |
| 35 | public enum IIsWebSiteSymbolFields |
| 36 | { |
| 37 | ComponentRef, |
| 38 | Description, |
| 39 | ConnectionTimeout, |
| 40 | DirectoryRef, |
| 41 | State, |
| 42 | Attributes, |
| 43 | KeyAddressRef, |
| 44 | DirPropertiesRef, |
| 45 | ApplicationRef, |
| 46 | Sequence, |
| 47 | LogRef, |
| 48 | WebsiteId, |
| 49 | } |
| 50 | |
| 51 | public class IIsWebSiteSymbol : IntermediateSymbol |
| 52 | { |
| 53 | public IIsWebSiteSymbol() : base(IisSymbolDefinitions.IIsWebSite, null, null) |
| 54 | { |
| 55 | } |
| 56 | |
| 57 | public IIsWebSiteSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSite, sourceLineNumber, id) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | public IntermediateField this[IIsWebSiteSymbolFields index] => this.Fields[(int)index]; |
| 62 | |
| 63 | public string ComponentRef |
| 64 | { |
| 65 | get => this.Fields[(int)IIsWebSiteSymbolFields.ComponentRef].AsString(); |
| 66 | set => this.Set((int)IIsWebSiteSymbolFields.ComponentRef, value); |
| 67 | } |
| 68 | |
| 69 | public string Description |
| 70 | { |
| 71 | get => this.Fields[(int)IIsWebSiteSymbolFields.Description].AsString(); |
| 72 | set => this.Set((int)IIsWebSiteSymbolFields.Description, value); |
| 73 | } |
| 74 | |
| 75 | public int? ConnectionTimeout |
| 76 | { |
| 77 | get => this.Fields[(int)IIsWebSiteSymbolFields.ConnectionTimeout].AsNullableNumber(); |
| 78 | set => this.Set((int)IIsWebSiteSymbolFields.ConnectionTimeout, value); |
| 79 | } |
| 80 | |
| 81 | public string DirectoryRef |
| 82 | { |
| 83 | get => this.Fields[(int)IIsWebSiteSymbolFields.DirectoryRef].AsString(); |
| 84 | set => this.Set((int)IIsWebSiteSymbolFields.DirectoryRef, value); |
| 85 | } |
| 86 | |
| 87 | public int? State |
| 88 | { |
| 89 | get => this.Fields[(int)IIsWebSiteSymbolFields.State].AsNullableNumber(); |
| 90 | set => this.Set((int)IIsWebSiteSymbolFields.State, value); |
| 91 | } |
| 92 | |
| 93 | public int Attributes |
| 94 | { |
| 95 | get => this.Fields[(int)IIsWebSiteSymbolFields.Attributes].AsNumber(); |
| 96 | set => this.Set((int)IIsWebSiteSymbolFields.Attributes, value); |
| 97 | } |
| 98 | |
| 99 | public string KeyAddressRef |
| 100 | { |
| 101 | get => this.Fields[(int)IIsWebSiteSymbolFields.KeyAddressRef].AsString(); |
| 102 | set => this.Set((int)IIsWebSiteSymbolFields.KeyAddressRef, value); |
| 103 | } |
| 104 | |
| 105 | public string DirPropertiesRef |
| 106 | { |
| 107 | get => this.Fields[(int)IIsWebSiteSymbolFields.DirPropertiesRef].AsString(); |
| 108 | set => this.Set((int)IIsWebSiteSymbolFields.DirPropertiesRef, value); |
| 109 | } |
| 110 | |
| 111 | public string ApplicationRef |
| 112 | { |
| 113 | get => this.Fields[(int)IIsWebSiteSymbolFields.ApplicationRef].AsString(); |
| 114 | set => this.Set((int)IIsWebSiteSymbolFields.ApplicationRef, value); |
| 115 | } |
| 116 | |
| 117 | public int? Sequence |
| 118 | { |
| 119 | get => this.Fields[(int)IIsWebSiteSymbolFields.Sequence].AsNullableNumber(); |
| 120 | set => this.Set((int)IIsWebSiteSymbolFields.Sequence, value); |
| 121 | } |
| 122 | |
| 123 | public string LogRef |
| 124 | { |
| 125 | get => this.Fields[(int)IIsWebSiteSymbolFields.LogRef].AsString(); |
| 126 | set => this.Set((int)IIsWebSiteSymbolFields.LogRef, value); |
| 127 | } |
| 128 | |
| 129 | public string WebsiteId |
| 130 | { |
| 131 | get => this.Fields[(int)IIsWebSiteSymbolFields.WebsiteId].AsString(); |
| 132 | set => this.Set((int)IIsWebSiteSymbolFields.WebsiteId, value); |
| 133 | } |
| 134 | } |
| 135 | } |