diff options
Diffstat (limited to 'src/WixToolset.Extensibility/BaseBinderExtension.cs')
-rw-r--r-- | src/WixToolset.Extensibility/BaseBinderExtension.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/BaseBinderExtension.cs b/src/WixToolset.Extensibility/BaseBinderExtension.cs new file mode 100644 index 00000000..e5e38793 --- /dev/null +++ b/src/WixToolset.Extensibility/BaseBinderExtension.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | // 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. | ||
2 | |||
3 | namespace WixToolset.Extensibility | ||
4 | { | ||
5 | using WixToolset.Data.Bind; | ||
6 | |||
7 | /// <summary> | ||
8 | /// Base class for creating a resolver extension. | ||
9 | /// </summary> | ||
10 | public abstract class BaseBinderExtension : IBinderExtension | ||
11 | { | ||
12 | /// <summary> | ||
13 | /// Context for use by the extension. | ||
14 | /// </summary> | ||
15 | protected IBindContext Context { get; private set; } | ||
16 | |||
17 | /// <summary> | ||
18 | /// Called at the beginning of bind. | ||
19 | /// </summary> | ||
20 | public virtual void PreBind(IBindContext context) | ||
21 | { | ||
22 | this.Context = context; | ||
23 | } | ||
24 | |||
25 | /// <summary> | ||
26 | /// Called at the end of bind. | ||
27 | /// </summary> | ||
28 | public virtual void PostBind(BindResult result) | ||
29 | { | ||
30 | } | ||
31 | } | ||
32 | } | ||