diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 20:45:40 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 21:34:24 +1000 |
| commit | 177784c9a6d93eeb3c195e6d62b97eb4c1dde32b (patch) | |
| tree | 1ad322fa26816a32279f5433ec500cbdf5934f86 /src/WixToolset.Core/CommandLine/CompileCommand.cs | |
| parent | 302b501f9ed2ae840ce598b30792d0fc1b538572 (diff) | |
| download | wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.gz wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.bz2 wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.zip | |
Use IWixToolsetServiceProvider and IWixToolsetCoreServiceProvider to expose the more convenient methods from WixToolsetServiceProvider without requiring casting or extension methods.
Diffstat (limited to 'src/WixToolset.Core/CommandLine/CompileCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/CompileCommand.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WixToolset.Core/CommandLine/CompileCommand.cs b/src/WixToolset.Core/CommandLine/CompileCommand.cs index 0a354a8f..67756947 100644 --- a/src/WixToolset.Core/CommandLine/CompileCommand.cs +++ b/src/WixToolset.Core/CommandLine/CompileCommand.cs | |||
| @@ -12,14 +12,14 @@ namespace WixToolset.Core.CommandLine | |||
| 12 | 12 | ||
| 13 | internal class CompileCommand : ICommandLineCommand | 13 | internal class CompileCommand : ICommandLineCommand |
| 14 | { | 14 | { |
| 15 | public CompileCommand(IServiceProvider serviceProvider) | 15 | public CompileCommand(IWixToolsetServiceProvider serviceProvider) |
| 16 | { | 16 | { |
| 17 | this.ServiceProvider = serviceProvider; | 17 | this.ServiceProvider = serviceProvider; |
| 18 | this.Messaging = serviceProvider.GetService<IMessaging>(); | 18 | this.Messaging = serviceProvider.GetService<IMessaging>(); |
| 19 | this.ExtensionManager = serviceProvider.GetService<IExtensionManager>(); | 19 | this.ExtensionManager = serviceProvider.GetService<IExtensionManager>(); |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | public CompileCommand(IServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, Platform platform) | 22 | public CompileCommand(IWixToolsetServiceProvider serviceProvider, IEnumerable<SourceFile> sources, IDictionary<string, string> preprocessorVariables, Platform platform) |
| 23 | { | 23 | { |
| 24 | this.ServiceProvider = serviceProvider; | 24 | this.ServiceProvider = serviceProvider; |
| 25 | this.Messaging = serviceProvider.GetService<IMessaging>(); | 25 | this.Messaging = serviceProvider.GetService<IMessaging>(); |
| @@ -29,7 +29,7 @@ namespace WixToolset.Core.CommandLine | |||
| 29 | this.Platform = platform; | 29 | this.Platform = platform; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | private IServiceProvider ServiceProvider { get; } | 32 | private IWixToolsetServiceProvider ServiceProvider { get; } |
| 33 | 33 | ||
| 34 | public IMessaging Messaging { get; } | 34 | public IMessaging Messaging { get; } |
| 35 | 35 | ||
