| 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 IIsWebVirtualDir = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsWebVirtualDir.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.WebRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.Alias), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirectoryRef), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.DirPropertiesRef), IntermediateFieldType.String), |
| 19 | new IntermediateFieldDefinition(nameof(IIsWebVirtualDirSymbolFields.ApplicationRef), IntermediateFieldType.String), |
| 20 | }, |
| 21 | typeof(IIsWebVirtualDirSymbol)); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | namespace WixToolset.Iis.Symbols |
| 26 | { |
| 27 | using WixToolset.Data; |
| 28 | |
| 29 | public enum IIsWebVirtualDirSymbolFields |
| 30 | { |
| 31 | ComponentRef, |
| 32 | WebRef, |
| 33 | Alias, |
| 34 | DirectoryRef, |
| 35 | DirPropertiesRef, |
| 36 | ApplicationRef, |
| 37 | } |
| 38 | |
| 39 | public class IIsWebVirtualDirSymbol : IntermediateSymbol |
| 40 | { |
| 41 | public IIsWebVirtualDirSymbol() : base(IisSymbolDefinitions.IIsWebVirtualDir, null, null) |
| 42 | { |
| 43 | } |
| 44 | |
| 45 | public IIsWebVirtualDirSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebVirtualDir, sourceLineNumber, id) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | public IntermediateField this[IIsWebVirtualDirSymbolFields index] => this.Fields[(int)index]; |
| 50 | |
| 51 | public string ComponentRef |
| 52 | { |
| 53 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ComponentRef].AsString(); |
| 54 | set => this.Set((int)IIsWebVirtualDirSymbolFields.ComponentRef, value); |
| 55 | } |
| 56 | |
| 57 | public string WebRef |
| 58 | { |
| 59 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.WebRef].AsString(); |
| 60 | set => this.Set((int)IIsWebVirtualDirSymbolFields.WebRef, value); |
| 61 | } |
| 62 | |
| 63 | public string Alias |
| 64 | { |
| 65 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.Alias].AsString(); |
| 66 | set => this.Set((int)IIsWebVirtualDirSymbolFields.Alias, value); |
| 67 | } |
| 68 | |
| 69 | public string DirectoryRef |
| 70 | { |
| 71 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirectoryRef].AsString(); |
| 72 | set => this.Set((int)IIsWebVirtualDirSymbolFields.DirectoryRef, value); |
| 73 | } |
| 74 | |
| 75 | public string DirPropertiesRef |
| 76 | { |
| 77 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.DirPropertiesRef].AsString(); |
| 78 | set => this.Set((int)IIsWebVirtualDirSymbolFields.DirPropertiesRef, value); |
| 79 | } |
| 80 | |
| 81 | public string ApplicationRef |
| 82 | { |
| 83 | get => this.Fields[(int)IIsWebVirtualDirSymbolFields.ApplicationRef].AsString(); |
| 84 | set => this.Set((int)IIsWebVirtualDirSymbolFields.ApplicationRef, value); |
| 85 | } |
| 86 | } |
| 87 | } |