System.Threading.Tasks.TaskCompletionSource.TrySetResult(PhoneNumberVerificationResult)

Here are the examples of the csharp api System.Threading.Tasks.TaskCompletionSource.TrySetResult(PhoneNumberVerificationResult) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 Source : PhoneAuthProviderWrapper.cs
with MIT License
from f-miyu

public override void OnCodeAutoRetrievalTimeOut(string verificationId)
            {
                base.OnCodeAutoRetrievalTimeOut(verificationId);

                _tcs.TrySetResult(new PhoneNumberVerificationResult(null, verificationId));
            }

19 Source : PhoneAuthProviderWrapper.cs
with MIT License
from f-miyu

public override void OnVerificationCompleted(PhoneAuthCredential credential)
            {
                _tcs.TrySetResult(new PhoneNumberVerificationResult(new PhoneAuthCredentialWrapper(credential), null));
            }

19 Source : PhoneAuthProviderWrapper.cs
with MIT License
from f-miyu

public override void OnCodeSent(string verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)
            {
                base.OnCodeSent(verificationId, forceResendingToken);

                _tcs.TrySetResult(new PhoneNumberVerificationResult(null, verificationId));
            }