diff options
Diffstat (limited to 'src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs')
| -rw-r--r-- | src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs b/src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs deleted file mode 100644 index afccc56f..00000000 --- a/src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 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 System.Collections.Generic; | ||
| 6 | using WixToolset.Data; | ||
| 7 | using WixToolset.Data.WindowsInstaller; | ||
| 8 | using WixToolset.Extensibility; | ||
| 9 | |||
| 10 | internal class ExampleWindowsInstallerBackendExtension : BaseWindowsInstallerBackendBinderExtension | ||
| 11 | { | ||
| 12 | public override IReadOnlyCollection<TableDefinition> TableDefinitions => ExampleTableDefinitions.All; | ||
| 13 | |||
| 14 | public override bool TryProcessSymbol(IntermediateSection section, IntermediateSymbol symbol, WindowsInstallerData output, TableDefinitionCollection tableDefinitions) | ||
| 15 | { | ||
| 16 | if (ExampleSymbolDefinitions.TryGetSymbolType(symbol.Definition.Name, out var symbolType)) | ||
| 17 | { | ||
| 18 | switch (symbolType) | ||
| 19 | { | ||
| 20 | case ExampleSymbolDefinitionType.Example: | ||
| 21 | { | ||
| 22 | var row = (ExampleRow)this.BackendHelper.CreateRow(section, symbol, output, ExampleTableDefinitions.ExampleTable); | ||
| 23 | row.Example = symbol.Id.Id; | ||
| 24 | row.Value = symbol[0].AsString(); | ||
| 25 | } | ||
| 26 | return true; | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | return base.TryProcessSymbol(section, symbol, output, tableDefinitions); | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
