// 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 BaseLayoutExtension : ILayoutExtension
{
///
/// Context for use by the extension.
///
protected ILayoutContext Context { get; private set; }
///
/// Messaging for use by the extension.
///
protected IMessaging Messaging { get; private set; }
///
/// Called at the beginning of layout.
///
public virtual void PreLayout(ILayoutContext context)
{
this.Context = context;
this.Messaging = context.ServiceProvider.GetService();
}
public virtual bool CopyFile(string source, string destination)
{
return false;
}
public virtual bool MoveFile(string source, string destination)
{
return false;
}
///
/// Called at the end of ayout.
///
public virtual void PostLayout()
{
}
}
}