diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-02 12:54:41 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-02-02 12:54:41 -0600 |
| commit | c7bed5a084324ba94aae5108bac94374ce9dfe39 (patch) | |
| tree | c9156a8e7a8cae8767dc17b61215a20bb5dcb253 /src/wixext/DirectXExtensionData.cs | |
| parent | 29159bacb7ac1f88557b5f2fa6e7774c67ecddf7 (diff) | |
| download | wix-c7bed5a084324ba94aae5108bac94374ce9dfe39.tar.gz wix-c7bed5a084324ba94aae5108bac94374ce9dfe39.tar.bz2 wix-c7bed5a084324ba94aae5108bac94374ce9dfe39.zip | |
Import code from old v4 repo
Diffstat (limited to 'src/wixext/DirectXExtensionData.cs')
| -rw-r--r-- | src/wixext/DirectXExtensionData.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/wixext/DirectXExtensionData.cs b/src/wixext/DirectXExtensionData.cs new file mode 100644 index 00000000..828b087d --- /dev/null +++ b/src/wixext/DirectXExtensionData.cs | |||
| @@ -0,0 +1,34 @@ | |||
| 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.Extensions | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Reflection; | ||
| 7 | using WixToolset.Data; | ||
| 8 | using WixToolset.Extensibility; | ||
| 9 | |||
| 10 | /// <summary> | ||
| 11 | /// The WiX Toolset DirectX Extension. | ||
| 12 | /// </summary> | ||
| 13 | public sealed class DirectXExtensionData : ExtensionData | ||
| 14 | { | ||
| 15 | /// <summary> | ||
| 16 | /// Gets the library associated with this extension. | ||
| 17 | /// </summary> | ||
| 18 | /// <param name="tableDefinitions">The table definitions to use while loading the library.</param> | ||
| 19 | /// <returns>The loaded library.</returns> | ||
| 20 | public override Library GetLibrary(TableDefinitionCollection tableDefinitions) | ||
| 21 | { | ||
| 22 | return DirectXExtensionData.GetExtensionLibrary(tableDefinitions); | ||
| 23 | } | ||
| 24 | |||
| 25 | /// <summary> | ||
| 26 | /// Internal mechanism to access the extension's library. | ||
| 27 | /// </summary> | ||
| 28 | /// <returns>Extension's library.</returns> | ||
| 29 | internal static Library GetExtensionLibrary(TableDefinitionCollection tableDefinitions) | ||
| 30 | { | ||
| 31 | return ExtensionData.LoadLibraryHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.DirectX.wixlib", tableDefinitions); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
