Class ServiceProviderSetup
Used to help bootstrap an ActorSystem with dependency injection (DI) support via a IServiceProvider reference.
The IServiceProvider 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
[Obsolete("Used DependencyResolverSetup instead.")]
public class ServiceProviderSetup : Setup
Properties
| Improve this Doc View SourceServiceProvider
Declaration
public IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
| Improve this Doc View SourceCreate(IServiceProvider)
Declaration
public static ServiceProviderSetup Create(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | provider |
Returns
Type | Description |
---|---|
ServiceProviderSetup |