diff options
Diffstat (limited to 'src/WixToolset.Extensibility/BaseBinderExtension.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/BaseBinderExtension.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/BaseBinderExtension.cs b/src/WixToolset.Extensibility/BaseBinderExtension.cs index 51d63694..d533b0cb 100644 --- a/src/WixToolset.Extensibility/BaseBinderExtension.cs +++ b/src/WixToolset.Extensibility/BaseBinderExtension.cs | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | namespace WixToolset.Extensibility | 3 | namespace WixToolset.Extensibility |
| 4 | { | 4 | { |
| 5 | using WixToolset.Extensibility.Data; | 5 | using WixToolset.Extensibility.Data; |
| 6 | using WixToolset.Extensibility.Services; | ||
| 6 | 7 | ||
| 7 | /// <summary> | 8 | /// <summary> |
| 8 | /// Base class for creating a resolver extension. | 9 | /// Base class for creating a resolver extension. |
| @@ -15,11 +16,25 @@ namespace WixToolset.Extensibility | |||
| 15 | protected IBindContext Context { get; private set; } | 16 | protected IBindContext Context { get; private set; } |
| 16 | 17 | ||
| 17 | /// <summary> | 18 | /// <summary> |
| 19 | /// Messaging for use by the extension. | ||
| 20 | /// </summary> | ||
| 21 | protected IMessaging Messaging { get; private set; } | ||
| 22 | |||
| 23 | /// <summary> | ||
| 24 | /// BackendHelper for use by the extension. | ||
| 25 | /// </summary> | ||
| 26 | protected IBackendHelper BackendHelper { get; private set; } | ||
| 27 | |||
| 28 | /// <summary> | ||
| 18 | /// Called at the beginning of bind. | 29 | /// Called at the beginning of bind. |
| 19 | /// </summary> | 30 | /// </summary> |
| 20 | public virtual void PreBind(IBindContext context) | 31 | public virtual void PreBind(IBindContext context) |
| 21 | { | 32 | { |
| 22 | this.Context = context; | 33 | this.Context = context; |
| 34 | |||
| 35 | this.Messaging = context.ServiceProvider.GetService<IMessaging>(); | ||
| 36 | |||
| 37 | this.BackendHelper = context.ServiceProvider.GetService<IBackendHelper>(); | ||
| 23 | } | 38 | } |
| 24 | 39 | ||
| 25 | /// <summary> | 40 | /// <summary> |
