FindAll Method
FindAll()
Enumerate all YubiKeys on the system over all available transports.
public static IEnumerable<IYubiKeyDevice> FindAll()
Returns
A collection of YubiKeys that were found, as IYubiKeyDevices.
Remarks
This method will exclude any connection (SmartCard, HidFido, HidKeyboard) that did not successfully respond to a request for its Firmware Version. This means that there may be fewer IYubiKeys returned than expected, or that some IYubiKeys are missing an expected connection.
To the host device, a single YubiKey can appear as multiple devices. This method will attempt to match these devices back together into a single IYubiKeyDevice using their serial number. If they cannot be matched, each connection will be returned as a separate IYubiKeyDevice.
If your application no longer needs to watch for insertion or removal notifications, you can call StopListening() to release resources and avoid the logging and other actions from the listeners.