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"); }
private async Task HandleJoin(UserParticipationNotification notification) => await _userActivityRepository.SaveUserActivity(notification);