From 9aae370eee18b4c87300f333fa52f3cd0d7f34d1 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 14 Mar 2021 11:17:20 -0700 Subject: Use extension methods instead of a custom interface for IServiceProvider There are several helpful methods for getting services out of an IServiceProvider. Instead of introducing a custom interface to inject those methods into the inheritance tree, this change uses extension methods to add the helper methods and reduce the number of custom interfaces. --- src/WixToolset.Extensibility/Data/IPreprocessContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/WixToolset.Extensibility/Data/IPreprocessContext.cs') diff --git a/src/WixToolset.Extensibility/Data/IPreprocessContext.cs b/src/WixToolset.Extensibility/Data/IPreprocessContext.cs index b07fb81f..c6bdfe3a 100644 --- a/src/WixToolset.Extensibility/Data/IPreprocessContext.cs +++ b/src/WixToolset.Extensibility/Data/IPreprocessContext.cs @@ -2,15 +2,15 @@ namespace WixToolset.Extensibility.Data { + using System; using System.Collections.Generic; using System.Threading; using WixToolset.Data; - using WixToolset.Extensibility.Services; #pragma warning disable 1591 // TODO: add documentation public interface IPreprocessContext { - IWixToolsetServiceProvider ServiceProvider { get; } + IServiceProvider ServiceProvider { get; } IEnumerable Extensions { get; set; } -- cgit v1.2.3-55-g6feb