// 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 { using WixToolset.Extensibility.Data; using WixToolset.Extensibility.Services; /// /// Base class for creating a resolver extension. /// public abstract class BaseBinderExtension : IBinderExtension { /// /// Context for use by the extension. /// protected IBindContext Context { get; private set; } /// /// Messaging for use by the extension. /// protected IMessaging Messaging { get; private set; } /// /// BackendHelper for use by the extension. /// protected IBackendHelper BackendHelper { get; private set; } /// /// Called at the beginning of bind. /// public virtual void PreBind(IBindContext context) { this.Context = context; this.Messaging = context.ServiceProvider.GetService(); this.BackendHelper = context.ServiceProvider.GetService(); } /// /// Called at the end of bind. /// public virtual void PostBind(IBindResult result) { } } }