aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/LayoutContext.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/LayoutContext.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/LayoutContext.cs')
-rw-r--r--src/WixToolset.Core/LayoutContext.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WixToolset.Core/LayoutContext.cs b/src/WixToolset.Core/LayoutContext.cs
index b8a8635d..385aa610 100644
--- a/src/WixToolset.Core/LayoutContext.cs
+++ b/src/WixToolset.Core/LayoutContext.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{
@@ -6,15 +6,16 @@ namespace WixToolset.Core
6 using System.Collections.Generic; 6 using System.Collections.Generic;
7 using WixToolset.Extensibility; 7 using WixToolset.Extensibility;
8 using WixToolset.Extensibility.Data; 8 using WixToolset.Extensibility.Data;
9 using WixToolset.Extensibility.Services;
9 10
10 internal class LayoutContext : ILayoutContext 11 internal class LayoutContext : ILayoutContext
11 { 12 {
12 internal LayoutContext(IServiceProvider serviceProvider) 13 internal LayoutContext(IWixToolsetServiceProvider serviceProvider)
13 { 14 {
14 this.ServiceProvider = serviceProvider; 15 this.ServiceProvider = serviceProvider;
15 } 16 }
16 17
17 public IServiceProvider ServiceProvider { get; } 18 public IWixToolsetServiceProvider ServiceProvider { get; }
18 19
19 public IEnumerable<ILayoutExtension> Extensions { get; set; } 20 public IEnumerable<ILayoutExtension> Extensions { get; set; }
20 21