Inheritance: FingerprintManager.AuthenticationCallback, IAuthenticationCallback
Ejemplo n.º 1
0
 public override async Task <FingerprintAuthenticationResult> AuthenticateNoDialogAsync(IAuthenticationFailedListener failedListener, CancellationToken cancellationToken)
 {
     using (var cancellationSignal = new CancellationSignal())
         using (cancellationToken.Register(() => cancellationSignal.Cancel()))
         {
             var callback = new FingerprintAuthenticationCallback(failedListener);
             GetService().Authenticate(null, cancellationSignal, FingerprintAuthenticationFlags.None, callback, null);
             return(await callback.GetTask());
         }
 }
 public override async Task<FingerprintAuthenticationResult> AuthenticateNoDialogAsync(IAuthenticationFailedListener failedListener, CancellationToken cancellationToken)
 {
     using (var cancellationSignal = new CancellationSignal())
     using (cancellationToken.Register(() => cancellationSignal.Cancel()))
     {
         var callback = new FingerprintAuthenticationCallback(failedListener);
         GetService().Authenticate(null, cancellationSignal, FingerprintAuthenticationFlags.None, callback, null);
         return await callback.GetTask();
     }
 }