| 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.ComPlus |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Extensibility; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// The WiX Toolset COM+ Extension. |
| 10 | /// </summary> |
| 11 | public sealed class ComPlusExtensionData : BaseExtensionData |
| 12 | { |
| 13 | public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) |
| 14 | { |
| 15 | symbolDefinition = ComPlusSymbolDefinitions.ByName(name); |
| 16 | return symbolDefinition != null; |
| 17 | } |
| 18 | |
| 19 | public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions) |
| 20 | { |
| 21 | return Intermediate.Load(typeof(ComPlusExtensionData).Assembly, "WixToolset.ComPlus.complus.wixlib", symbolDefinitions); |
| 22 | } |
| 23 | } |
| 24 | } |