Beispiel #1
0
        private void ButtonIsConnected_Click(object sender, RoutedEventArgs e)
        {
            addLog("<IsConnected>");
            var res = con.IsConnected();

            addLog($"- Connected = {res}\r\n");
        }
Beispiel #2
0
        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);
        }