From 5392cf57c09bddde7157e5b26c5c2a013f819ead Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 1 Mar 2019 11:12:52 -0800 Subject: Integrate interface-only WixToolset.Extensibility change --- src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs') 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 public BindDatabaseCommand(IBindContext context, IEnumerable backendExtension, Validator validator) { + this.ServiceProvider = context.ServiceProvider; + this.Messaging = context.ServiceProvider.GetService(); this.BackendHelper = context.ServiceProvider.GetService(); @@ -46,6 +48,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind this.BackendExtensions = backendExtension; } + public IServiceProvider ServiceProvider { get; } + private IMessaging Messaging { get; } private IBackendHelper BackendHelper { get; } @@ -383,7 +387,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind { this.Messaging.Write(VerboseMessages.CreatingCabinetFiles()); - var command = new CreateCabinetsCommand(this.BackendHelper); + var command = new CreateCabinetsCommand(this.ServiceProvider, this.BackendHelper); command.CabbingThreadCount = this.CabbingThreadCount; command.CabCachePath = this.CabCachePath; command.DefaultCompressionLevel = this.DefaultCompressionLevel; -- cgit v1.2.3-55-g6feb