diff options
author | Bob Arnson <bob@joyofsetup.com> | 2017-12-20 21:42:24 -0500 |
---|---|---|
committer | Bob Arnson <bob@joyofsetup.com> | 2017-12-20 21:42:24 -0500 |
commit | 21be85310baadfb1a479ca5b8c4d8f27018ff8f8 (patch) | |
tree | 5b810376a8a296715b3018b2825baa7b83b16557 | |
parent | 46a4f1d98fdedc82c701ada198252dfd6099959f (diff) | |
download | wix-21be85310baadfb1a479ca5b8c4d8f27018ff8f8.tar.gz wix-21be85310baadfb1a479ca5b8c4d8f27018ff8f8.tar.bz2 wix-21be85310baadfb1a479ca5b8c4d8f27018ff8f8.zip |
Add ICompileContext to BaseCompilerExtension
-rw-r--r-- | src/WixToolset.Extensibility/BaseCompilerExtension.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/BaseCompilerExtension.cs b/src/WixToolset.Extensibility/BaseCompilerExtension.cs index 0f386e28..58efa37f 100644 --- a/src/WixToolset.Extensibility/BaseCompilerExtension.cs +++ b/src/WixToolset.Extensibility/BaseCompilerExtension.cs | |||
@@ -13,6 +13,11 @@ namespace WixToolset.Extensibility | |||
13 | public abstract class BaseCompilerExtension : ICompilerExtension | 13 | public abstract class BaseCompilerExtension : ICompilerExtension |
14 | { | 14 | { |
15 | /// <summary> | 15 | /// <summary> |
16 | /// Context for use by the extension. | ||
17 | /// </summary> | ||
18 | protected ICompileContext Context { get; private set; } | ||
19 | |||
20 | /// <summary> | ||
16 | /// Messaging for use by the extension. | 21 | /// Messaging for use by the extension. |
17 | /// </summary> | 22 | /// </summary> |
18 | protected IMessaging Messaging { get; private set; } | 23 | protected IMessaging Messaging { get; private set; } |
@@ -33,6 +38,8 @@ namespace WixToolset.Extensibility | |||
33 | /// </summary> | 38 | /// </summary> |
34 | public virtual void PreCompile(ICompileContext context) | 39 | public virtual void PreCompile(ICompileContext context) |
35 | { | 40 | { |
41 | this.Context = context; | ||
42 | |||
36 | this.Messaging = context.Messaging; | 43 | this.Messaging = context.Messaging; |
37 | 44 | ||
38 | this.ParseHelper = context.ServiceProvider.GetService<IParseHelper>(); | 45 | this.ParseHelper = context.ServiceProvider.GetService<IParseHelper>(); |