Click or drag to resize
Akka.NETExtensionsAddDependencyResolver Method
Registers a dependency resolver with a given actor system.

Namespace:  Akka.DI.Core
Assembly:  Akka.DI.Core (in Akka.DI.Core.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static void AddDependencyResolver(
	this ActorSystem system,
	IDependencyResolver dependencyResolver
)

Parameters

system
Type: Akka.ActorActorSystem
The actor system in which to register the given dependency resolver.
dependencyResolver
Type: Akka.DI.CoreIDependencyResolver
The dependency resolver being registered to the actor system.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActorSystem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullException This exception is thrown when either the specified system or the specified dependencyResolver is undefined.
See Also