diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-22 17:19:56 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 19:53:52 -0700 |
| commit | 8cf0427984a88b0b3ddfb2061e5be721afffe82e (patch) | |
| tree | 22e2aaf7665d5ab6d3dc2a8ce8f05d73080d1f20 /src/test/Example.Extension/ExampleWindowsInstallerBackendExtension.cs | |
| parent | 8426095723fb8530a321260473ab543151bf8c98 (diff) | |
| download | wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.gz wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.tar.bz2 wix-8cf0427984a88b0b3ddfb2061e5be721afffe82e.zip | |
Move Core into wix
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 | } | ||
