示例#1
0
        private async Task <bool> GetCurrentUserInfoAsync(IAzureService azureService)
        {
            bool returnValue;

            try
            {
                UserInformation.User = await azureService.GetMobileServicesClinet().InvokeApiAsync <User>("Profile", HttpMethod.Get, null);

                Title       = $"Tasks for: {UserInformation.User.FullName}";
                returnValue = true;
            }
            catch (Exception)
            {
                returnValue = false;
            }
            return(returnValue);
        }