public void Logout() { var user = AuthenticationManager.GetActiveUser(); AuthenticationManager.Logout(); if (user != null) { _pipelineService.RunLoggedOut(user); } }