Class DIExt
This class represents an ActorSystem extension used to create Props configuration objects using a dependency injection (DI) container.
Implements
Inherited Members
Namespace: Akka.DI.Core
Assembly: Akka.DI.Core.dll
Syntax
public class DIExt : IExtension
Methods
| Improve this Doc View SourceInitialize(IDependencyResolver)
Initializes the extension to use a given DI resolver.
Declaration
public void Initialize(IDependencyResolver dependencyResolver)
Parameters
Type | Name | Description |
---|---|---|
IDependencyResolver | dependencyResolver | The resolver used to resolve types from the DI container. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown when the specified |
Props(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. |