Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a4519e7a0This file is pinned to the selected release. Download the original to open it in your design tool.
using Hast.Transformer;
using System.Threading.Tasks;
namespace Hast.Layer.Extensibility.Events;
/// <summary>
/// Events to be executed before and after transformation inside <see cref="Hastlayer.GenerateHardwareAsync"/>.
/// </summary>
public interface ITransformationEvents
{
/// <summary>
/// Executes before <see cref="ITransformer.TransformAsync"/> may be called.
/// </summary>
Task BeforeTransformAsync() => Task.CompletedTask;
/// <summary>
/// Executes after <see cref="ITransformer.TransformAsync"/> may be called.
/// </summary>
Task AfterTransformAsync(IHardwareDescription hardwareDescription) => Task.CompletedTask;
}