示例#1
0
        private async Task doInsertAsync(int opt)
        {
            var tokenSource2     = new CancellationTokenSource();
            CancellationToken ct = tokenSource2.Token;

            try
            {
                await FirebaseHelper.AddUser(entryName.Text, entryApellidos.Text, entryDNI.Text, "12345", opt);
            }
            catch (OperationCanceledException e)
            {
                Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
            }
            finally
            {
                tokenSource2.Dispose();
                Navigation.PopModalAsync();
            }
        }