aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/HttpWindowsInstallerBackendBinderExtension.cs')
-rw-r--r--src/wixext/HttpWindowsInstallerBackendBinderExtension.cs18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs b/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs
index f8dd1838..7a94257b 100644
--- a/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs
+++ b/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs
@@ -1,27 +1,13 @@
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. 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 2
3namespace WixToolset.Http 3namespace WixToolset.Http
4{ 4{
5 using System.Collections.Generic; 5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Xml;
8 using WixToolset.Data.WindowsInstaller; 6 using WixToolset.Data.WindowsInstaller;
9 using WixToolset.Extensibility; 7 using WixToolset.Extensibility;
10 8
11 public class HttpWindowsInstallerBackendBinderExtension : BaseWindowsInstallerBackendBinderExtension 9 public class HttpWindowsInstallerBackendBinderExtension : BaseWindowsInstallerBackendBinderExtension
12 { 10 {
13 private static readonly TableDefinition[] Tables = LoadTables(); 11 public override IEnumerable<TableDefinition> TableDefinitions => HttpTableDefinitions.All;
14
15 public override IEnumerable<TableDefinition> TableDefinitions => Tables;
16
17 private static TableDefinition[] LoadTables()
18 {
19 using (var resourceStream = typeof(HttpWindowsInstallerBackendBinderExtension).Assembly.GetManifestResourceStream("WixToolset.Http.tables.xml"))
20 using (var reader = XmlReader.Create(resourceStream))
21 {
22 var tables = TableDefinitionCollection.Load(reader);
23 return tables.ToArray();
24 }
25 }
26 } 12 }
27} 13}