// 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.Data; using WixToolset.Extensibility.Data; using WixToolset.Extensibility.Services; /// /// Base class for creating a linker extension. /// public abstract class BaseLinkerExtension : ILinkerExtension { /// /// Context for use by the extension. /// protected ILinkContext Context { get; private set; } /// /// Messaging for use by the extension. /// protected IMessaging Messaging { get; private set; } /// /// Called at the beginning of the linking. /// public virtual void PreLink(ILinkContext context) { this.Context = context; this.Messaging = context.ServiceProvider.GetService(); } /// /// Called at the end of the linking. /// public virtual void PostLink(Intermediate intermediate) { } } }