Class DIActorSystemAdapter
This class represents an adapter used to generate Props configuration objects using the dependency injection (DI) extension using a given actor system.
Inherited Members
Namespace: Akka.DI.Core
Assembly: Akka.DI.Core.dll
Syntax
public class DIActorSystemAdapter
Constructors
| Improve this Doc View SourceDIActorSystemAdapter(ActorSystem)
Initializes a new instance of the DIActorSystemAdapter class.
Declaration
public DIActorSystemAdapter(ActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | system | The actor system that contains the DI extension. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | This exception is thrown when the specified |
| InvalidOperationException | This exception is thrown when the Dependency Resolver has not been configured in the ActorSystem. |
Methods
| Improve this Doc View SourceProps(Type)
Creates a Props configuration object for a given actor type.
Declaration
public Props Props(Type actorType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | actorType | The actor type for which to create the Props configuration. |
Returns
| Type | Description |
|---|---|
| Props | A Props configuration object for the given actor type. |
Props<TActor>()
Creates a Props configuration object for a given actor type.
Declaration
public Props Props<TActor>()
where TActor : ActorBase
Returns
| Type | Description |
|---|---|
| Props | A Props configuration object for the given actor type. |
Type Parameters
| Name | Description |
|---|---|
| TActor | The actor type for which to create the Props configuration. |
Improve this Doc