| ExtensionsAddDependencyResolver 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.129 (1.2.3.129)
Syntax public static void AddDependencyResolver(
this ActorSystem system,
IDependencyResolver dependencyResolver
)
[<ExtensionAttribute>]
static member AddDependencyResolver :
system : ActorSystem *
dependencyResolver : IDependencyResolver -> unit
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 Exception | Condition |
---|
ArgumentNullException |
This exception is thrown when either the specified system or the specified dependencyResolver is undefined.
|
See Also