Table of Contents

Class GovernanceActorContext

Namespace
AsiBackbone.Core.Actors
Assembly
AsiBackbone.Core.dll

Provides a default framework-neutral actor context implementation.

public sealed record GovernanceActorContext : IGovernanceActorContext, IEquatable<GovernanceActorContext>
Inheritance
GovernanceActorContext
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 GovernanceActorType ActorType { get; }

Property Value

GovernanceActorType

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 GovernanceActorContext System { get; }

Property Value

GovernanceActorContext

Unknown

Gets a shared actor context for unknown or unauthenticated operations.

public static GovernanceActorContext Unknown { get; }

Property Value

GovernanceActorContext

Methods

Agent(string, string?, bool)

Creates an actor context for a delegated or autonomous software agent.

public static GovernanceActorContext 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

GovernanceActorContext

An agent actor context.

Human(string, string?, bool)

Creates an actor context for a human participant.

public static GovernanceActorContext 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

GovernanceActorContext

A human actor context.

Service(string, string?)

Creates an actor context for a service participant.

public static GovernanceActorContext Service(string actorId, string? displayName = null)

Parameters

actorId string

The stable service actor identifier.

displayName string

The optional display name.

Returns

GovernanceActorContext

A service actor context.