Class DependencyResolverSetup
Used to help bootstrap an ActorSystem with dependency injection (DI) support via a IDependencyResolver reference.
The IDependencyResolver will be used to access previously registered services in the creation of actors and other pieces of infrastructure inside Akka.NET.
The constructor is internal. Please use Create(IServiceProvider) to create a new instance.
Inherited Members
Namespace: Akka.DependencyInjection
Assembly: Akka.DependencyInjection.dll
Syntax
public class DependencyResolverSetup : Setup
Properties
| Improve this Doc View SourceDependencyResolver
Declaration
public IDependencyResolver DependencyResolver { get; }
Property Value
Type | Description |
---|---|
IDependencyResolver |
Methods
| Improve this Doc View SourceCreate(IDependencyResolver)
Creates a new instance of DependencyResolverSetup, an implementation of IDependencyResolver can be passed in here to resolve services from test or alternative DI frameworks.
Declaration
public static DependencyResolverSetup Create(IDependencyResolver provider)
Parameters
Type | Name | Description |
---|---|---|
IDependencyResolver | provider |
Returns
Type | Description |
---|---|
DependencyResolverSetup |
Create(IServiceProvider)
Creates a new instance of DependencyResolverSetup, passing in IServiceProvider here creates an IDependencyResolver that resolves dependencies from the specified IServiceProvider
Declaration
public static DependencyResolverSetup Create(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | provider |
Returns
Type | Description |
---|---|
DependencyResolverSetup |