diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:38:48 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 07:47:48 -0700 |
| commit | 3ccd5e439da4296d6f2b66ce47075ab20d039676 (patch) | |
| tree | b5546552613b869367d09f444492a0bbcfadcfe0 /src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs | |
| parent | 574785ab1421c9b67336c13ade5c2263e665ca07 (diff) | |
| download | wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.gz wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.tar.bz2 wix-3ccd5e439da4296d6f2b66ce47075ab20d039676.zip | |
Minimize public surface area of Core
Fixes wixtoolset/issues#6374
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs index 585bdac0..ca074631 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesFromTransforms.cs | |||
| @@ -5,35 +5,35 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 7 | using System.Linq; | 7 | using System.Linq; |
| 8 | using WixToolset.Core.Bind; | ||
| 9 | using WixToolset.Data; | 8 | using WixToolset.Data; |
| 10 | using WixToolset.Data.WindowsInstaller; | 9 | using WixToolset.Data.WindowsInstaller; |
| 11 | using WixToolset.Data.WindowsInstaller.Rows; | 10 | using WixToolset.Data.WindowsInstaller.Rows; |
| 12 | using WixToolset.Extensibility; | 11 | using WixToolset.Extensibility.Data; |
| 13 | using WixToolset.Extensibility.Services; | 12 | using WixToolset.Extensibility.Services; |
| 14 | 13 | ||
| 15 | internal class GetFileFacadesFromTransforms | 14 | internal class GetFileFacadesFromTransforms |
| 16 | { | 15 | { |
| 17 | public GetFileFacadesFromTransforms(IMessaging messaging, FileSystemManager fileSystemManager, IEnumerable<SubStorage> subStorages) | 16 | public GetFileFacadesFromTransforms(IMessaging messaging, IWindowsInstallerBackendHelper backendHelper, FileSystemManager fileSystemManager, IEnumerable<SubStorage> subStorages) |
| 18 | { | 17 | { |
| 19 | this.Messaging = messaging; | 18 | this.Messaging = messaging; |
| 19 | this.BackendHelper = backendHelper; | ||
| 20 | this.FileSystemManager = fileSystemManager; | 20 | this.FileSystemManager = fileSystemManager; |
| 21 | this.SubStorages = subStorages; | 21 | this.SubStorages = subStorages; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | private IMessaging Messaging { get; } | 24 | private IMessaging Messaging { get; } |
| 25 | 25 | ||
| 26 | private IWindowsInstallerBackendHelper BackendHelper { get; } | ||
| 27 | |||
| 26 | private FileSystemManager FileSystemManager { get; } | 28 | private FileSystemManager FileSystemManager { get; } |
| 27 | 29 | ||
| 28 | private IEnumerable<SubStorage> SubStorages { get; } | 30 | private IEnumerable<SubStorage> SubStorages { get; } |
| 29 | 31 | ||
| 30 | public List<FileFacade> FileFacades { get; private set; } | 32 | public List<IFileFacade> FileFacades { get; private set; } |
| 31 | 33 | ||
| 32 | public void Execute() | 34 | public void Execute() |
| 33 | { | 35 | { |
| 34 | var allFileRows = new List<FileFacade>(); | 36 | var allFileRows = new List<IFileFacade>(); |
| 35 | |||
| 36 | var patchMediaRows = new RowDictionary<MediaRow>(); | ||
| 37 | 37 | ||
| 38 | var patchMediaFileRows = new Dictionary<int, RowDictionary<FileRow>>(); | 38 | var patchMediaFileRows = new Dictionary<int, RowDictionary<FileRow>>(); |
| 39 | 39 | ||
| @@ -143,7 +143,12 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 143 | 143 | ||
| 144 | mediaFileRows.Add(patchFileRow); | 144 | mediaFileRows.Add(patchFileRow); |
| 145 | 145 | ||
| 146 | allFileRows.Add(new FileFacade(patchFileRow)); // TODO: should we be passing along delta information? Probably, right? | 146 | #if TODO_PATCHING_DELTA |
| 147 | // TODO: should we be passing along delta information to the file facade? Probably, right? | ||
| 148 | #endif | ||
| 149 | var fileFacade = this.BackendHelper.CreateFileFacade(patchFileRow); | ||
| 150 | |||
| 151 | allFileRows.Add(fileFacade); | ||
| 147 | } | 152 | } |
| 148 | else | 153 | else |
| 149 | { | 154 | { |
