aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs')
-rw-r--r--src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs b/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs
new file mode 100644
index 00000000..711f745f
--- /dev/null
+++ b/src/wixext/Tuples/IIsWebSiteCertificatesTuple.cs
@@ -0,0 +1,55 @@
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
3namespace WixToolset.Iis
4{
5 using WixToolset.Data;
6 using WixToolset.Iis.Tuples;
7
8 public static partial class IisTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition IIsWebSiteCertificates = new IntermediateTupleDefinition(
11 IisTupleDefinitionType.IIsWebSiteCertificates.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesTupleFields.Web_), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(IIsWebSiteCertificatesTupleFields.Certificate_), IntermediateFieldType.String),
16 },
17 typeof(IIsWebSiteCertificatesTuple));
18 }
19}
20
21namespace WixToolset.Iis.Tuples
22{
23 using WixToolset.Data;
24
25 public enum IIsWebSiteCertificatesTupleFields
26 {
27 Web_,
28 Certificate_,
29 }
30
31 public class IIsWebSiteCertificatesTuple : IntermediateTuple
32 {
33 public IIsWebSiteCertificatesTuple() : base(IisTupleDefinitions.IIsWebSiteCertificates, null, null)
34 {
35 }
36
37 public IIsWebSiteCertificatesTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebSiteCertificates, sourceLineNumber, id)
38 {
39 }
40
41 public IntermediateField this[IIsWebSiteCertificatesTupleFields index] => this.Fields[(int)index];
42
43 public string Web_
44 {
45 get => this.Fields[(int)IIsWebSiteCertificatesTupleFields.Web_].AsString();
46 set => this.Set((int)IIsWebSiteCertificatesTupleFields.Web_, value);
47 }
48
49 public string Certificate_
50 {
51 get => this.Fields[(int)IIsWebSiteCertificatesTupleFields.Certificate_].AsString();
52 set => this.Set((int)IIsWebSiteCertificatesTupleFields.Certificate_, value);
53 }
54 }
55} \ No newline at end of file