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