private void ButtonIsConnected_Click(object sender, RoutedEventArgs e) { addLog("<IsConnected>"); var res = con.IsConnected(); addLog($"- Connected = {res}\r\n"); }
private HIDAuthenticatorConnector GetCurrentConnector() { HIDAuthenticatorConnector con = null; if (fidoDevices.ContainsKey(CurrentDevicePath)) { con = fidoDevices[CurrentDevicePath]; } else { return(null); } if (!con.IsConnected()) { addLog($"Not connected to {CurrentDevicePath}"); return(null); } return(con); }