London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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