IActorRegistry
Manages the registration and retrieval of actors within the system.
Namespace: ControlBee.Interfaces
Extends: IDisposable
Methods
Add
Registers an actor in the registry.
void Add(IActor actor);
Parameters:
actor— The actor to register.
Get
Retrieves a registered actor by its name.
IActor? Get(string actorName);
Parameters:
actorName— The name of the actor to retrieve.
Returns: The IActor if found, or null.
GetActorNames
Returns the names of all registered actors.
string[] GetActorNames();
Returns: An array of actor names.
GetActors
Returns all registered actors.
IActor[] GetActors();
Returns: An array of all registered IActor instances.
GetActorNameTitlePairs
Returns name-title pairs for all registered actors.
(string name, string Title)[] GetActorNameTitlePairs();
Returns: An array of tuples containing each actor's name and title.