public void ApproovTokenFetchResult(TokenInterfaceApproovResults results) { string token = ErrorToken; ApproovAttestation.AttestationResult result = results.Result; if (results.Result == ApproovAttestation.AttestationResult.Success) { token = results.Token; Log.Info(TAG, "Fetched Approov token (async)"); } else { Log.Info(TAG, "Failed to fetch Approov token (async)"); } try { tcs.SetResult(token); } catch (Exception exc) { tcs.SetException(exc); } }
public void ApproovTokenFetchResult(TokenInterfaceApproovResults results) { string token = Approover.TOKEN_FAILURE; ApproovAttestation.AttestationResult result = results.Result; if (results.Result == ApproovAttestation.AttestationResult.Success) { token = results.Token; } try { tcs.SetResult(token); } catch (Exception exc) { tcs.SetException(exc); } }