Loading files
cb05633b4This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Threading.Tasks;
using Hast.Layer;
using Hast.Samples.SampleAssembly;
namespace Hast.Samples.Consumer.SampleRunners
{
internal static class ObjectOrientedShowcaseSampleRunner
{
public static void Configure(HardwareGenerationConfiguration configuration)
{
configuration.AddHardwareEntryPointType<ObjectOrientedShowcase>();
}
public static async Task Run(IHastlayer hastlayer, IHardwareRepresentation hardwareRepresentation)
{
var ooShowcase = await hastlayer
.GenerateProxy(hardwareRepresentation, new ObjectOrientedShowcase());
var sum = ooShowcase.Run(93); // 293
}
}
}