Try our conversational search powered by Generative AI!

Class CurrentUserService

A service for getting the current user.

Inheritance
System.Object
CurrentUserService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Security
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
[Obsolete("This type is no longer used. Use EPiServer.Security.PrincipalInfo.CurrentPrincipal instead.  Will remain at least until Aug 2020.")]
public class CurrentUserService

Constructors

CurrentUserService()

Declaration
public CurrentUserService()

Methods

GetCurrentUser()

Gets the current user using EPiServer.Security.PrincipalInfo.CurrentPrincipal

Declaration
public virtual IPrincipal GetCurrentUser()
Returns
Type Description
System.Security.Principal.IPrincipal