| 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 IIsWebSiteCertificates = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsWebSiteCertificates.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.WebRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesSymbolFields.CertificateRef), IntermediateFieldType.String), |
| 16 | }, |
| 17 | typeof(IIsWebSiteCertificatesSymbol)); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | namespace WixToolset.Iis.Symbols |
| 22 | { |
| 23 | using WixToolset.Data; |
| 24 | |
| 25 | public enum IIsWebSiteCertificatesSymbolFields |
| 26 | { |
| 27 | WebRef, |
| 28 | CertificateRef, |
| 29 | } |
| 30 | |
| 31 | public class IIsWebSiteCertificatesSymbol : IntermediateSymbol |
| 32 | { |
| 33 | public IIsWebSiteCertificatesSymbol() : base(IisSymbolDefinitions.IIsWebSiteCertificates, null, null) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | public IIsWebSiteCertificatesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebSiteCertificates, sourceLineNumber, id) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | public IntermediateField this[IIsWebSiteCertificatesSymbolFields index] => this.Fields[(int)index]; |
| 42 | |
| 43 | public string WebRef |
| 44 | { |
| 45 | get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.WebRef].AsString(); |
| 46 | set => this.Set((int)IIsWebSiteCertificatesSymbolFields.WebRef, value); |
| 47 | } |
| 48 | |
| 49 | public string CertificateRef |
| 50 | { |
| 51 | get => this.Fields[(int)IIsWebSiteCertificatesSymbolFields.CertificateRef].AsString(); |
| 52 | set => this.Set((int)IIsWebSiteCertificatesSymbolFields.CertificateRef, value); |
| 53 | } |
| 54 | } |
| 55 | } |