// 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.Tools
{
using System;
using System.Reflection;
using WixToolset.Data;
using WixToolset.Extensibilty;
using Wix = WixToolset.Data.Serialize;
///
/// The WiX Toolset Harvester application core.
///
public sealed class HeatCore : IHeatCore, IMessageHandler
{
private Harvester harvester;
private Mutator mutator;
///
/// Instantiates a new HeatCore.
///
/// The message handler for the core.
public HeatCore()
{
this.harvester = new Harvester();
this.mutator = new Mutator();
}
///
/// Gets whether the mutator core encountered an error while processing.
///
/// Flag if core encountered an error during processing.
public bool EncounteredError
{
get { return Messaging.Instance.EncounteredError; }
}
///
/// Gets the harvester.
///
/// The harvester.
public Harvester Harvester
{
get { return this.harvester; }
}
///
/// Gets the mutator.
///
/// The mutator.
public Mutator Mutator
{
get { return this.mutator; }
}
///
/// Sends a message to the message delegate if there is one.
///
/// Message event arguments.
public void OnMessage(MessageEventArgs mea)
{
Messaging.Instance.OnMessage(mea);
}
}
}