Interface IDependencyResolver
Defines services used by the ActorSystem extension system to create actors
Namespace: Akka.DI.Core
Assembly: Akka.DI.Core.dll
Syntax
public interface IDependencyResolver
Methods
| Improve this Doc View SourceCreate(Type)
Used to register the configuration for an actor of the specified type actorType
Declaration
Props Create(Type actorType)
Parameters
Type | Name | Description |
---|---|---|
Type | actorType | The Type of actor the configuration is based |
Returns
Type | Description |
---|---|
Props | The configuration object for the given actor type |
Create<TActor>()
Used to register the configuration for an actor of the specified type TActor
Declaration
Props Create<TActor>()
where TActor : ActorBase
Returns
Type | Description |
---|---|
Props | The configuration object for the given actor type |
Type Parameters
Name | Description |
---|---|
TActor | The type of actor the configuration is based |
CreateActorFactory(Type)
Creates a delegate factory used to create actors based on their type
Declaration
Func<ActorBase> CreateActorFactory(Type actorType)
Parameters
Type | Name | Description |
---|---|---|
Type | actorType | The type of actor that the factory builds |
Returns
Type | Description |
---|---|
Func<ActorBase> | A delegate factory used to create actors |
GetType(String)
Retrieves an actor's type with the specified name
Declaration
Type GetType(string actorName)
Parameters
Type | Name | Description |
---|---|---|
String | actorName | The name of the actor to retrieve |
Returns
Type | Description |
---|---|
Type | The type with the specified actor name |
Release(ActorBase)
Signals the container to release it's reference to the actor.
Declaration
void Release(ActorBase actor)
Parameters
Type | Name | Description |
---|---|---|
ActorBase | actor | The actor to remove from the container |