コード例 #1
0
        protected void btnSignOut_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Session.Abandon();
            Session.RemoveAll();

            CookieHelper.SetCookieValue(Enums.Cookies.UserLastRequest.ToString(), "STOP");
            FormsAuthentication.SignOut();


            activeUserRepo.SaveUserLoggedInActivity(false, PrincipalHelper.GetUserPrincipal().ID);
            userActRepo.SaveUserActivity(Enums.UserActivityEnum.LOGOUT, PrincipalHelper.GetUserPrincipal().ActiveUserID, "");

            Response.Redirect("~/Home.aspx");
        }
コード例 #2
0
 private async Task HandleJoin(UserParticipationNotification notification)
 => await _userActivityRepository.SaveUserActivity(notification);