/// <summary>
        /// Signs in the current user.
        /// </summary>
        /// <returns></returns>
        public async Task SignInCurrentUserAsync()
        {
            _currentUser = await _userOperations.AuthenticateCurrentUserAsync();

            if (_currentUser != null)
            {
                this.DisplayName = _currentUser.DisplayName;
                this.JobTitle    = _currentUser.JobTitle;
                this.Avatar      = await _userOperations.GetUserThumbnailPhotoAsync(_currentUser);

                this.LogOnCaption = "Disconnect from Office 365";
                this.Id           = _currentUser.ObjectId;
                this._mailAddress = _currentUser.Mail;
                this.SignedIn     = true;
            }
        }