Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 正在.Net解析LogInAsync中等待当前用户_C#_Android_.net_Xamarin - Fatal编程技术网

C# 正在.Net解析LogInAsync中等待当前用户

C# 正在.Net解析LogInAsync中等待当前用户,c#,android,.net,xamarin,C#,Android,.net,Xamarin,这是我第一次使用parse编写程序,但我无法让parse登录。在下面的代码中,当前用户始终设置为null。我需要能够登录并继续应用程序中的下一个活动 public static async void correctCredentials(string username, string password){ try{ await ParseUser.LogInAsync (username, password); i

这是我第一次使用parse编写程序,但我无法让parse登录。在下面的代码中,当前用户始终设置为null。我需要能够登录并继续应用程序中的下一个活动

        public static async void correctCredentials(string username, string password){

        try{
            await ParseUser.LogInAsync (username, password);
            if(ParseUser.CurrentUser != null)
                parseloggedIN = true;


        } catch{
            //Nothing here
        }