Table of Contents

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

string

UnknownActorId

The stable identifier used for unknown actors.

public const string UnknownActorId = "unknown"

Field Value

string

Properties

ActorId

Gets the stable actor identifier.

public string ActorId { get; }

Property Value

string

ActorType

Gets the actor type.

public AsiBackboneActorType ActorType { get; }

Property Value

AsiBackboneActorType

DisplayName

Gets the optional display name or label for the actor.

public string? DisplayName { get; }

Property Value

string

IsAuthenticated

Gets a value indicating whether the actor has been authenticated by the host.

public bool IsAuthenticated { get; }

Property Value

bool

IsKnown

Gets a value indicating whether the actor is known to the host or framework.

public bool IsKnown { get; }

Property Value

bool

System

Gets a shared actor context for trusted system operations.

public static AsiBackboneActorContext System { get; }

Property Value

AsiBackboneActorContext

Unknown

Gets a shared actor context for unknown or unauthenticated operations.

public static AsiBackboneActorContext Unknown { get; }

Property Value

AsiBackboneActorContext

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

actorId string

The stable agent actor identifier.

displayName string

The optional display name.

isAuthenticated bool

Whether 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

actorId string

The stable actor identifier.

displayName string

The optional display name.

isAuthenticated bool

Whether 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

actorId string

The stable service actor identifier.

displayName string

The optional display name.

Returns

AsiBackboneActorContext

A service actor context.