Show / Hide Table of Contents

Class PrincipalAccessorDecorator

A ICurrentPrincipalAccessor where the user can be changed (temporarly or for the lifetime of the instance).

Inheritance
Object
PrincipalAccessorDecorator
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.IdentityModel
Assembly: IRM.dll
Syntax
public class PrincipalAccessorDecorator : ICurrentPrincipalAccessor

Constructors

PrincipalAccessorDecorator(Decorator<ICurrentPrincipalAccessor>)

Creates a new instance of PrincipalAccessorDecorator.

Declaration
public PrincipalAccessorDecorator(Decorator<ICurrentPrincipalAccessor> decorator)
Parameters
Decorator<ICurrentPrincipalAccessor> decorator

The ordinary ICurrentPrincipalAccessor.

Exceptions
System.ArgumentNullException

Properties

CurrentPrincipal

Gets the current user.

Declaration
public ClaimsPrincipal CurrentPrincipal { get; }
Property Value
System.Security.Claims.ClaimsPrincipal

Implements
ICurrentPrincipalAccessor.CurrentPrincipal

Methods

SetCurrentPrincipal(ClaimsPrincipal)

Sets the current principal to be used for CurrentPrincipal.

Declaration
public void SetCurrentPrincipal(ClaimsPrincipal principal)
Parameters
System.Security.Claims.ClaimsPrincipal principal

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX