Loading files
using System.Collections.Generic;
using System.Linq;
using Hast.Layer;
namespace Hast.Synthesis.Abstractions
{
public class DeviceManifestSelector : IDeviceManifestSelector
{
private readonly IEnumerable<IDeviceManifestProvider> _deviceManifestProviders;
public DeviceManifestSelector(IEnumerable<IDeviceManifestProvider> deviceManifestProviders)
{
_deviceManifestProviders = deviceManifestProviders;
}
public IEnumerable<IDeviceManifest> GetSupportedDevices() =>
_deviceManifestProviders
.Select(provider => provider.DeviceManifest)
.GroupBy(manifest => manifest.Name)
.Select(group => group.First());
}
}
651b5b7c8This file is pinned to the selected release. Download the original to open it in your design tool.