From 177784c9a6d93eeb3c195e6d62b97eb4c1dde32b Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 2 Apr 2020 20:45:40 +1000 Subject: Use IWixToolsetServiceProvider and IWixToolsetCoreServiceProvider to expose the more convenient methods from WixToolsetServiceProvider without requiring casting or extension methods. --- src/WixToolset.Core/LayoutContext.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Core/LayoutContext.cs') 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 @@ -// 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. +// 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. namespace WixToolset.Core { @@ -6,15 +6,16 @@ namespace WixToolset.Core using System.Collections.Generic; using WixToolset.Extensibility; using WixToolset.Extensibility.Data; + using WixToolset.Extensibility.Services; internal class LayoutContext : ILayoutContext { - internal LayoutContext(IServiceProvider serviceProvider) + internal LayoutContext(IWixToolsetServiceProvider serviceProvider) { this.ServiceProvider = serviceProvider; } - public IServiceProvider ServiceProvider { get; } + public IWixToolsetServiceProvider ServiceProvider { get; } public IEnumerable Extensions { get; set; } -- cgit v1.2.3-55-g6feb