diff options
Diffstat (limited to 'src/test/Example.Extension/ExampleExtensionData.cs')
| -rw-r--r-- | src/test/Example.Extension/ExampleExtensionData.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/Example.Extension/ExampleExtensionData.cs b/src/test/Example.Extension/ExampleExtensionData.cs new file mode 100644 index 00000000..c3cb0473 --- /dev/null +++ b/src/test/Example.Extension/ExampleExtensionData.cs | |||
| @@ -0,0 +1,33 @@ | |||
| 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 Example.Extension | ||
| 4 | { | ||
| 5 | using WixToolset.Data; | ||
| 6 | using WixToolset.Extensibility; | ||
| 7 | |||
| 8 | internal class ExampleExtensionData : IExtensionData | ||
| 9 | { | ||
| 10 | public string DefaultCulture => null; | ||
| 11 | |||
| 12 | public Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | ||
| 13 | { | ||
| 14 | return null; | ||
| 15 | } | ||
| 16 | |||
| 17 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | ||
| 18 | { | ||
| 19 | switch (name) | ||
| 20 | { | ||
| 21 | case "Example": | ||
| 22 | tupleDefinition = TupleDefinitions.Example; | ||
| 23 | break; | ||
| 24 | |||
| 25 | default: | ||
| 26 | tupleDefinition = null; | ||
| 27 | break; | ||
| 28 | } | ||
| 29 | |||
| 30 | return tupleDefinition != null; | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } \ No newline at end of file | ||
