diff options
Diffstat (limited to 'src/wixext/MsmqWindowsInstallerBackendExtension.cs')
-rw-r--r-- | src/wixext/MsmqWindowsInstallerBackendExtension.cs | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/wixext/MsmqWindowsInstallerBackendExtension.cs b/src/wixext/MsmqWindowsInstallerBackendExtension.cs index 4debafeb..3f83db56 100644 --- a/src/wixext/MsmqWindowsInstallerBackendExtension.cs +++ b/src/wixext/MsmqWindowsInstallerBackendExtension.cs | |||
@@ -1,32 +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 | ||
3 | namespace WixToolset.Msmq | 3 | namespace WixToolset.Msmq |
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 MsmqWindowsInstallerBackendBinderExtension : BaseWindowsInstallerBackendBinderExtension | 9 | public class MsmqWindowsInstallerBackendBinderExtension : BaseWindowsInstallerBackendBinderExtension |
12 | { | 10 | { |
13 | public MsmqWindowsInstallerBackendBinderExtension() | 11 | public override IEnumerable<TableDefinition> TableDefinitions => MsmqTableDefinitions.All; |
14 | { | ||
15 | |||
16 | } | ||
17 | |||
18 | private static readonly TableDefinition[] Tables = LoadTables(); | ||
19 | |||
20 | public override IEnumerable<TableDefinition> TableDefinitions => Tables; | ||
21 | |||
22 | private static TableDefinition[] LoadTables() | ||
23 | { | ||
24 | using (var resourceStream = typeof(MsmqWindowsInstallerBackendBinderExtension).Assembly.GetManifestResourceStream("WixToolset.Msmq.tables.xml")) | ||
25 | using (var reader = XmlReader.Create(resourceStream)) | ||
26 | { | ||
27 | var tables = TableDefinitionCollection.Load(reader); | ||
28 | return tables.ToArray(); | ||
29 | } | ||
30 | } | ||
31 | } | 12 | } |
32 | } | 13 | } |