Class AsiBackboneActorContext
- Namespace
- AsiBackbone.Core.Actors
- Assembly
- AsiBackbone.Core.dll
Provides a default framework-neutral actor context implementation.
public sealed record AsiBackboneActorContext : IAsiBackboneActorContext, IEquatable<AsiBackboneActorContext>
- Inheritance
-
AsiBackboneActorContext
- Implements
- Inherited Members
Fields
SystemActorId
The stable identifier used for system actors.
public const string SystemActorId = "system"
Field Value
UnknownActorId
The stable identifier used for unknown actors.
public const string UnknownActorId = "unknown"
Field Value
Properties
ActorId
Gets the stable actor identifier.
public string ActorId { get; }
Property Value
ActorType
Gets the actor type.
public AsiBackboneActorType ActorType { get; }
Property Value
DisplayName
Gets the optional display name or label for the actor.
public string? DisplayName { get; }
Property Value
IsAuthenticated
Gets a value indicating whether the actor has been authenticated by the host.
public bool IsAuthenticated { get; }
Property Value
IsKnown
Gets a value indicating whether the actor is known to the host or framework.
public bool IsKnown { get; }
Property Value
System
Gets a shared actor context for trusted system operations.
public static AsiBackboneActorContext System { get; }
Property Value
Unknown
Gets a shared actor context for unknown or unauthenticated operations.
public static AsiBackboneActorContext Unknown { get; }
Property Value
Methods
Agent(string, string?, bool)
Creates an actor context for a delegated or autonomous software agent.
public static AsiBackboneActorContext Agent(string actorId, string? displayName = null, bool isAuthenticated = true)
Parameters
actorIdstringThe stable agent actor identifier.
displayNamestringThe optional display name.
isAuthenticatedboolWhether the host has authenticated the agent.
Returns
- AsiBackboneActorContext
An agent actor context.
Human(string, string?, bool)
Creates an actor context for a human participant.
public static AsiBackboneActorContext Human(string actorId, string? displayName = null, bool isAuthenticated = true)
Parameters
actorIdstringThe stable actor identifier.
displayNamestringThe optional display name.
isAuthenticatedboolWhether the host has authenticated the actor.
Returns
- AsiBackboneActorContext
A human actor context.
Service(string, string?)
Creates an actor context for a service participant.
public static AsiBackboneActorContext Service(string actorId, string? displayName = null)
Parameters
Returns
- AsiBackboneActorContext
A service actor context.