Loading files
using Hast.Layer;
using System.Threading.Tasks;
namespace Hast.Samples.Consumer.SampleRunners;
/// <summary>
/// Configures and runs a sample.
/// </summary>
public interface ISampleRunner
{
/// <summary>
/// Uses <paramref name="configuration"/> to initialize the sample.
/// </summary>
void Configure(HardwareGenerationConfiguration configuration);
/// <summary>
/// Executes the sample.
/// </summary>
/// <param name="hastlayer">The <see cref="IHastlayer"/> instance.</param>
/// <param name="hardwareRepresentation">The hardware generated by <paramref name="hastlayer"/>.</param>
/// <param name="configuration">The configuration used to proxy the .NET code.</param>
Task RunAsync(IHastlayer hastlayer, IHardwareRepresentation hardwareRepresentation, IProxyGenerationConfiguration configuration);
}
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.