示例#1
0
        private void GetUserName(int userId)
        {
            var userDetails = client.GetUserByIdAsync(userId);

            userDetails.ContinueWith(x => Application.Current.Dispatcher.Invoke(() =>
            {
                ReportedUserName = (Utility.GetLang() == "ar" ? x.Result.FullNameAr : x.Result.FullNameEn);
            }
                                                                                ));
        }