aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CompileContext.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-02 20:45:40 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-02 21:34:24 +1000
commit177784c9a6d93eeb3c195e6d62b97eb4c1dde32b (patch)
tree1ad322fa26816a32279f5433ec500cbdf5934f86 /src/WixToolset.Core/CompileContext.cs
parent302b501f9ed2ae840ce598b30792d0fc1b538572 (diff)
downloadwix-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/CompileContext.cs')
-rw-r--r--src/WixToolset.Core/CompileContext.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WixToolset.Core/CompileContext.cs b/src/WixToolset.Core/CompileContext.cs
index c7a0905e..f92a131d 100644
--- a/src/WixToolset.Core/CompileContext.cs
+++ b/src/WixToolset.Core/CompileContext.cs
@@ -1,4 +1,4 @@
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
3namespace WixToolset.Core 3namespace WixToolset.Core
4{ 4{
@@ -8,15 +8,16 @@ namespace WixToolset.Core
8 using WixToolset.Data; 8 using WixToolset.Data;
9 using WixToolset.Extensibility; 9 using WixToolset.Extensibility;
10 using WixToolset.Extensibility.Data; 10 using WixToolset.Extensibility.Data;
11 using WixToolset.Extensibility.Services;
11 12
12 internal class CompileContext : ICompileContext 13 internal class CompileContext : ICompileContext
13 { 14 {
14 internal CompileContext(IServiceProvider serviceProvider) 15 internal CompileContext(IWixToolsetServiceProvider serviceProvider)
15 { 16 {
16 this.ServiceProvider = serviceProvider; 17 this.ServiceProvider = serviceProvider;
17 } 18 }
18 19
19 public IServiceProvider ServiceProvider { get; } 20 public IWixToolsetServiceProvider ServiceProvider { get; }
20 21
21 public string CompilationId { get; set; } 22 public string CompilationId { get; set; }
22 23