AmbientAuditActorResolver
Namespace AgentPrism · Assembly
AgentPrism.Core.dllThe default implementation that reads the actor from the user in AuditActorContext.
public sealed class AmbientAuditActorResolver : IAuditActorResolverInheritance
Section titled “Inheritance”object ← AmbientAuditActorResolver
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Read order: the configured AgentPrismAuditOptions.ActorClaimType claim;
otherwise ClaimTypes.NameIdentifier → ClaimTypes.Name →
sub → null.
Constructors
Section titled “Constructors”AmbientAuditActorResolver(IOptions<AgentPrismOptions>)
Section titled “ AmbientAuditActorResolver(IOptions<AgentPrismOptions>)”Initializes a new resolver.
public AmbientAuditActorResolver(IOptions<AgentPrismOptions> options)Parameters
Section titled “Parameters”options IOptions<AgentPrismOptions>
The AgentPrism options.
Exceptions
Section titled “Exceptions”options is null.
Methods
Section titled “Methods”Resolve()
Section titled “ Resolve()”Resolves the current actor.
public string? Resolve()Returns
Section titled “Returns”The actor id, or null when it cannot be resolved.