コード例 #1
0
        private async Task <bool> LogOutUser()
        {
            bool isSuccessful = false;

            try
            {
                await _authenticator.Logout();

                _tokenProvider.DeleteCurrentToken();
                this.Publish <Messages.LogoutSuccess>();

                isSuccessful = true;
            }
            catch (Exception ex)
            {
                Insights.Report(new Exception("Failed to logout", ex));
            }

            return(isSuccessful);
        }