예제 #1
0
 void _biometrics_IdentifySuccess(object sender, AuthenticationSuccessEventArgs e)
 {
     // Must be dispatched! Because the session is only good for a single result,
     // we need to close it and reopen another one for a subsequent scan. Closing
     // and reopening the session must be done on the same thread that opened the
     // session. Thus, we need to asynchronously dispatch back to the UI thread.
     Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
                            new Action(() =>
     {
         Status.Text   = "Success";
         UserName.Text = e.IdentityReference.ToString();
         _session.Close();
         _session = _biometrics.OpenSession();
     }));
 }
 void _biometrics_IdentifySuccess(object sender, AuthenticationSuccessEventArgs e)
 {
     // Must be dispatched! Because the session is only good for a single result,
     // we need to close it and reopen another one for a subsequent scan. Closing
     // and reopening the session must be done on the same thread that opened the
     // session. Thus, we need to asynchronously dispatch back to the UI thread.
     Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
         new Action(() =>
                    {
                        Status.Text = "Success";
                        UserName.Text = e.IdentityReference.ToString();
                        _session.Close();
                        _session = _biometrics.OpenSession();
                    }));
 }
예제 #3
0
 static void IdentifySuccess(object sender, AuthenticationSuccessEventArgs args)
 {
     Console.WriteLine("Success: {0}", args.IdentityReference);
 }
예제 #4
0
 static void IdentifySuccess(object sender, AuthenticationSuccessEventArgs args)
 {
     Console.WriteLine("Success: {0}", args.IdentityReference);
 }