From 027d1ac927aa6b0ee0c934b1f6b540d2a1667df2 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 22 Dec 2017 15:47:26 -0800 Subject: Bring back binder extensions and missing layout base extension --- .../BaseLayoutExtension.cs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/WixToolset.Extensibility/BaseLayoutExtension.cs (limited to 'src/WixToolset.Extensibility/BaseLayoutExtension.cs') diff --git a/src/WixToolset.Extensibility/BaseLayoutExtension.cs b/src/WixToolset.Extensibility/BaseLayoutExtension.cs new file mode 100644 index 00000000..6dfe7f2c --- /dev/null +++ b/src/WixToolset.Extensibility/BaseLayoutExtension.cs @@ -0,0 +1,30 @@ +// 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. + +namespace WixToolset.Extensibility +{ + /// + /// Base class for creating a resolver extension. + /// + public abstract class BaseLayoutExtension : ILayoutExtension + { + /// + /// Context for use by the extension. + /// + protected ILayoutContext Context { get; private set; } + + /// + /// Called at the beginning of layout. + /// + public virtual void PreLayout(ILayoutContext context) + { + this.Context = context; + } + + /// + /// Called at the end of ayout. + /// + public virtual void PostLayout() + { + } + } +} -- cgit v1.2.3-55-g6feb