aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
index 020f58b3..f78cb42c 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs
@@ -24,6 +24,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
24 24
25 public BindDatabaseCommand(IBindContext context, IEnumerable<IWindowsInstallerBackendBinderExtension> backendExtension, Validator validator) 25 public BindDatabaseCommand(IBindContext context, IEnumerable<IWindowsInstallerBackendBinderExtension> backendExtension, Validator validator)
26 { 26 {
27 this.ServiceProvider = context.ServiceProvider;
28
27 this.Messaging = context.ServiceProvider.GetService<IMessaging>(); 29 this.Messaging = context.ServiceProvider.GetService<IMessaging>();
28 30
29 this.BackendHelper = context.ServiceProvider.GetService<IBackendHelper>(); 31 this.BackendHelper = context.ServiceProvider.GetService<IBackendHelper>();
@@ -46,6 +48,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
46 this.BackendExtensions = backendExtension; 48 this.BackendExtensions = backendExtension;
47 } 49 }
48 50
51 public IServiceProvider ServiceProvider { get; }
52
49 private IMessaging Messaging { get; } 53 private IMessaging Messaging { get; }
50 54
51 private IBackendHelper BackendHelper { get; } 55 private IBackendHelper BackendHelper { get; }
@@ -383,7 +387,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
383 { 387 {
384 this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); 388 this.Messaging.Write(VerboseMessages.CreatingCabinetFiles());
385 389
386 var command = new CreateCabinetsCommand(this.BackendHelper); 390 var command = new CreateCabinetsCommand(this.ServiceProvider, this.BackendHelper);
387 command.CabbingThreadCount = this.CabbingThreadCount; 391 command.CabbingThreadCount = this.CabbingThreadCount;
388 command.CabCachePath = this.CabCachePath; 392 command.CabCachePath = this.CabCachePath;
389 command.DefaultCompressionLevel = this.DefaultCompressionLevel; 393 command.DefaultCompressionLevel = this.DefaultCompressionLevel;