diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-10-14 16:12:07 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-10-14 16:12:07 -0700 |
| commit | dbde9e7104b907bbbaea17e21247d8cafc8b3a4c (patch) | |
| tree | 0f5fbbb6fe12c6b2e5e622a0e18ce4c5b4eb2b96 /src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs | |
| parent | fbf986eb97f68396797a89fc7d40dec07b775440 (diff) | |
| download | wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.tar.gz wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.tar.bz2 wix-dbde9e7104b907bbbaea17e21247d8cafc8b3a4c.zip | |
Massive refactoring to introduce the concept of IBackend
Diffstat (limited to '')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs (renamed from src/WixToolset.Core/Bind/Databases/CopyTransformDataCommand.cs) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WixToolset.Core/Bind/Databases/CopyTransformDataCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs index af1ab3b0..6388a352 100644 --- a/src/WixToolset.Core/Bind/Databases/CopyTransformDataCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CopyTransformDataCommand.cs | |||
| @@ -1,6 +1,6 @@ | |||
| 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. | 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 | 2 | ||
| 3 | namespace WixToolset.Bind.Databases | 3 | namespace WixToolset.Core.WindowsInstaller.Databases |
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| @@ -9,15 +9,14 @@ namespace WixToolset.Bind.Databases | |||
| 9 | using WixToolset.Data.Rows; | 9 | using WixToolset.Data.Rows; |
| 10 | using WixToolset.Extensibility; | 10 | using WixToolset.Extensibility; |
| 11 | using WixToolset.Core.Native; | 11 | using WixToolset.Core.Native; |
| 12 | using WixToolset.Core.Bind; | ||
| 12 | 13 | ||
| 13 | internal class CopyTransformDataCommand : ICommand | 14 | internal class CopyTransformDataCommand |
| 14 | { | 15 | { |
| 15 | public bool CopyOutFileRows { private get; set; } | 16 | public bool CopyOutFileRows { private get; set; } |
| 16 | 17 | ||
| 17 | public BinderFileManagerCore FileManagerCore { private get; set; } | 18 | public IEnumerable<IBinderExtension> Extensions { private get; set; } |
| 18 | 19 | ||
| 19 | public IEnumerable<IBinderFileManager> FileManagers { private get; set; } | ||
| 20 | |||
| 21 | public Output Output { private get; set; } | 20 | public Output Output { private get; set; } |
| 22 | 21 | ||
| 23 | public TableDefinitionCollection TableDefinitions { private get; set; } | 22 | public TableDefinitionCollection TableDefinitions { private get; set; } |
| @@ -586,9 +585,10 @@ namespace WixToolset.Bind.Databases | |||
| 586 | private bool CompareFiles(string targetFile, string updatedFile) | 585 | private bool CompareFiles(string targetFile, string updatedFile) |
| 587 | { | 586 | { |
| 588 | bool? compared = null; | 587 | bool? compared = null; |
| 589 | foreach (IBinderFileManager fileManager in this.FileManagers) | 588 | foreach (var extension in this.Extensions) |
| 590 | { | 589 | { |
| 591 | compared = fileManager.CompareFiles(targetFile, updatedFile); | 590 | compared = extension.CompareFiles(targetFile, updatedFile); |
| 591 | |||
| 592 | if (compared.HasValue) | 592 | if (compared.HasValue) |
| 593 | { | 593 | { |
| 594 | break; | 594 | break; |
