Class ActorSystem
Syntax
Constructors
ActorSystem(Scheduler)
Declaration
public ActorSystem(Scheduler scheduler)
Parameters
Fields
RefToComponents
Small hack to track components not referenced directly by actors so the GC does not collect them.
This will be removed in the future when a common base class can be inherited (ReflectActor) instead of IActor and IAsyncActor
Declaration
public Dictionary<ActorRef, Dictionary<Type, object>> RefToComponents
Field Value
Properties
Dependencies
Declaration
public Dictionary<Type, object> Dependencies { set; }
Property Value
Token
Declaration
public CancellationToken Token { get; }
Property Value
Methods
Add<TState>(Actor<TState>, Dictionary<Type, Object>)
Declaration
public void Add<TState>(Actor<TState> actor, Dictionary<Type, object> components)
where TState : class
Parameters
Type Parameters
DisposeDependencies()
Declaration
public void DisposeDependencies()
FindActorState<TState>()
Find the first matching actor for type and return its internal state,
which is the class type of the actor or a custom type for deeply customized actor flow.
Declaration
public TState FindActorState<TState>()
where TState : class
Returns
Type Parameters
Remove(ActorRef)
Declaration
public void Remove(ActorRef actorRef)
Parameters
Shutdown()
Declaration
Start()
Declaration
Stop()
Declaration