diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-03-23 10:16:51 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-03-30 14:12:12 -0700 |
| commit | eedde7ee47ab7b3bef417f2d631814b586cdb011 (patch) | |
| tree | 73aa9284ee0bcbcf321528b97b17540e9b588112 /src/api | |
| parent | a6f5079719f26ed809f3b60cca6f1d46e9f7423e (diff) | |
| download | wix-eedde7ee47ab7b3bef417f2d631814b586cdb011.tar.gz wix-eedde7ee47ab7b3bef417f2d631814b586cdb011.tar.bz2 wix-eedde7ee47ab7b3bef417f2d631814b586cdb011.zip | |
Simplify BaseWindowsInstallerBackendBinderExtension
Move the standard symbol to table row conversion into the Binder so
there is less functionality in the extension assembly.
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/wix/WixToolset.Extensibility/BaseWindowsInstallerBackendBinderExtension.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/api/wix/WixToolset.Extensibility/BaseWindowsInstallerBackendBinderExtension.cs b/src/api/wix/WixToolset.Extensibility/BaseWindowsInstallerBackendBinderExtension.cs index ffff186b..e48579d7 100644 --- a/src/api/wix/WixToolset.Extensibility/BaseWindowsInstallerBackendBinderExtension.cs +++ b/src/api/wix/WixToolset.Extensibility/BaseWindowsInstallerBackendBinderExtension.cs | |||
| @@ -63,23 +63,24 @@ namespace WixToolset.Extensibility | |||
| 63 | /// <summary> | 63 | /// <summary> |
| 64 | /// See <see cref="IWindowsInstallerBackendBinderExtension.PreBackendBind(IBindContext)"/> | 64 | /// See <see cref="IWindowsInstallerBackendBinderExtension.PreBackendBind(IBindContext)"/> |
| 65 | /// </summary> | 65 | /// </summary> |
| 66 | public virtual IResolvedCabinet ResolveCabinet(string cabinetPath, IEnumerable<IBindFileWithPath> files) => null; | 66 | public virtual IResolvedCabinet ResolveCabinet(string cabinetPath, IEnumerable<IBindFileWithPath> files) |
| 67 | { | ||
| 68 | return null; | ||
| 69 | } | ||
| 67 | 70 | ||
| 68 | /// <summary> | 71 | /// <summary> |
| 69 | /// See <see cref="IWindowsInstallerBackendBinderExtension.PreBackendBind(IBindContext)"/> | 72 | /// See <see cref="IWindowsInstallerBackendBinderExtension.PreBackendBind(IBindContext)"/> |
| 70 | /// </summary> | 73 | /// </summary> |
| 71 | public virtual string ResolveMedia(MediaSymbol mediaRow, string mediaLayoutDirectory, string layoutDirectory) => null; | 74 | public virtual string ResolveMedia(MediaSymbol mediaRow, string mediaLayoutDirectory, string layoutDirectory) |
| 75 | { | ||
| 76 | return null; | ||
| 77 | } | ||
| 72 | 78 | ||
| 73 | /// <summary> | 79 | /// <summary> |
| 74 | /// See <see cref="IWindowsInstallerBackendBinderExtension.TryProcessSymbol(IntermediateSection, IntermediateSymbol, WindowsInstallerData, TableDefinitionCollection)"/> | 80 | /// See <see cref="IWindowsInstallerBackendBinderExtension.TryProcessSymbol(IntermediateSection, IntermediateSymbol, WindowsInstallerData, TableDefinitionCollection)"/> |
| 75 | /// </summary> | 81 | /// </summary> |
| 76 | public virtual bool TryProcessSymbol(IntermediateSection section, IntermediateSymbol symbol, WindowsInstallerData data, TableDefinitionCollection tableDefinitions) | 82 | public virtual bool TryProcessSymbol(IntermediateSection section, IntermediateSymbol symbol, WindowsInstallerData data, TableDefinitionCollection tableDefinitions) |
| 77 | { | 83 | { |
| 78 | if (this.TableDefinitions.Any(t => t.SymbolDefinition == symbol.Definition)) | ||
| 79 | { | ||
| 80 | return this.BackendHelper.TryAddSymbolToMatchingTableDefinitions(section, symbol, data, tableDefinitions); | ||
| 81 | } | ||
| 82 | |||
| 83 | return false; | 84 | return false; |
| 84 | } | 85 | } |
| 85 | 86 | ||
