diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-14 11:17:20 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-14 11:28:04 -0700 |
| commit | 9aae370eee18b4c87300f333fa52f3cd0d7f34d1 (patch) | |
| tree | 27aae273837bb9041e7d509c410910a6df05796c /src/WixToolset.Extensibility/Data/IPreprocessContext.cs | |
| parent | f4af6bf27abaaac7f0508ce2beafb31b5a64b53f (diff) | |
| download | wix-9aae370eee18b4c87300f333fa52f3cd0d7f34d1.tar.gz wix-9aae370eee18b4c87300f333fa52f3cd0d7f34d1.tar.bz2 wix-9aae370eee18b4c87300f333fa52f3cd0d7f34d1.zip | |
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.
Diffstat (limited to 'src/WixToolset.Extensibility/Data/IPreprocessContext.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/Data/IPreprocessContext.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Extensibility.Data | 3 | namespace WixToolset.Extensibility.Data |
| 4 | { | 4 | { |
| 5 | using System; | ||
| 5 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
| 6 | using System.Threading; | 7 | using System.Threading; |
| 7 | using WixToolset.Data; | 8 | using WixToolset.Data; |
| 8 | using WixToolset.Extensibility.Services; | ||
| 9 | 9 | ||
| 10 | #pragma warning disable 1591 // TODO: add documentation | 10 | #pragma warning disable 1591 // TODO: add documentation |
| 11 | public interface IPreprocessContext | 11 | public interface IPreprocessContext |
| 12 | { | 12 | { |
| 13 | IWixToolsetServiceProvider ServiceProvider { get; } | 13 | IServiceProvider ServiceProvider { get; } |
| 14 | 14 | ||
| 15 | IEnumerable<IPreprocessorExtension> Extensions { get; set; } | 15 | IEnumerable<IPreprocessorExtension> Extensions { get; set; } |
| 16 | 16 | ||
