Managers.ISessionManager Interface
Namespace: Nucleus.Abstractions.Managers
Assembly: Nucleus.Abstractions.dll
Defines the interface for the session manager.
Methods
BuildAuthenticationProperties
(UserSession) Method
BuildAuthenticationProperties (UserSession userSession)
Create a AuthenticationProperties instance using settings from userSession.
CountUsersOnline
(Site) Method
CountUsersOnline (Site site)
Return a count of active user sessions.
CreateNew
(Site, User, Boolean, IPAddress) Method
CreateNew (Nucleus.Abstractions.Models.Site, Nucleus.Abstractions.Models.User, System.Boolean, System.Net.IPAddress)
Delete
(UserSession) Method
Delete (UserSession userSession)
DeleteExpiredSessions
DeleteExpiredSessions ()
Remove all expired sessions.
Get
(Guid) Method
Get (Guid id)
Save
(UserSession) Method
Save (UserSession userSession)
SignIn
(UserSession, HttpContext, String) Method
SignIn (UserSession userSession, HttpContext httpContext, String returnUrl)
Sign in the user represented by useSession.
SignOut
(HttpContext) Method
SignOut (HttpContext httpContext)
Sign out the current user.