BaconographyPortable.ViewModel.ComposePostViewModel.RefreshUserImpl C# (CSharp) Method

RefreshUserImpl() private method

private RefreshUserImpl ( ) : void
return void
        private void RefreshUserImpl()
        {
            var userServiceTask = _userService.GetUser();
            userServiceTask.Wait();

            if (string.IsNullOrWhiteSpace(userServiceTask.Result.Username))
            {
                IsLoggedIn = false;
                PostingAs = string.Empty;
            }
            else
            {
                PostingAs = userServiceTask.Result.Username;
                IsLoggedIn = true;
            }
        }
    }