public List <HardwareInfo> Invoke(bool onlyAvailable) { var availableBoards = _boardProvider.ProvideAttachedHardwareInfo(); if (!onlyAvailable) { return(availableBoards); } IEnumerable <string> registeredIdentifiers = _deviceManager.GetAllDevices().Select(x => x.Info.HardwareId); return(availableBoards.Where(x => !registeredIdentifiers.Contains(x.HardwareId)).ToList()); }
public List <HardwareInfo> Index() { return(_boardProvider.ProvideAttachedHardwareInfo()); }