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.Catapult.Drivers;
using Hast.Layer;
using Hast.Synthesis.Models;
using Hast.Synthesis.Services;
using System.Threading.Tasks;
namespace Hast.Catapult.Services;
public class CatapultHardwareImplementationComposer : IHardwareImplementationComposer
{
public bool CanCompose(IHardwareImplementationCompositionContext context) =>
context.DeviceManifest.Name == CatapultDriver.DeviceName;
public Task<IHardwareImplementation> ComposeAsync(IHardwareImplementationCompositionContext context) =>
// Not yet implemented, just here as a placeholder.
Task.FromResult((IHardwareImplementation)new HardwareImplementation());
}