public override List <ICommunication> FindComms(HashSet <IResolverInfo> activeDevices) { List <ICommunication> comms = new List <ICommunication>(); foreach (UsbRegistry registry in UsbDevice.AllDevices) { var resolverInfo = new UsbResolverInfo(registry.Vid, registry.Pid, registry.SymbolicName); if (activeDevices.Contains(resolverInfo)) { continue; } ICommunication comm = new LibUsbCommunication(registry, resolverInfo); comms.Add(comm); } return(comms); }
public LibUsbCommunication(UsbRegistry usbRegistry, UsbResolverInfo resolverInfo) { _usbRegistry = usbRegistry; _resolverInfo = resolverInfo; }