aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleExtensionData.cs
blob: 91d60eb961ef8a50e7d2f3538823096aa94d995d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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.

namespace Example.Extension
{
    using WixToolset.Data;
    using WixToolset.Extensibility;

    internal class ExampleExtensionData : IExtensionData
    {
        public string DefaultCulture => null;

        public Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions)
        {
            return Intermediate.Load(typeof(ExampleExtensionData).Assembly, "Example.Extension.Example.wixlib", symbolDefinitions);
        }

        public bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition)
        {
            symbolDefinition = ExampleSymbolDefinitions.ByName(name);
            return symbolDefinition != null;
        }
    }
}