Search Results for

    Show / Hide Table of Contents

    Class Extensions

    This class contains extension methods used to simplify working with dependency injection (DI) inside an ActorSystem.

    Inheritance
    Object
    Extensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Akka.DI.Core
    Assembly: Akka.DI.Core.dll
    Syntax
    public static class Extensions

    Methods

    | Improve this Doc View Source

    AddDependencyResolver(ActorSystem, IDependencyResolver)

    Registers a dependency resolver with a given actor system.

    Declaration
    public static void AddDependencyResolver(this ActorSystem system, IDependencyResolver dependencyResolver)
    Parameters
    Type Name Description
    ActorSystem system

    The actor system in which to register the given dependency resolver.

    IDependencyResolver dependencyResolver

    The dependency resolver being registered to the actor system.

    Exceptions
    Type Condition
    ArgumentNullException

    This exception is thrown when either the specified system or the specified dependencyResolver is undefined.

    | Improve this Doc View Source

    DI(ActorSystem)

    Creates an adapter used to generate Props configuration objects using the DI extension using a given actor system.

    Declaration
    public static DIActorSystemAdapter DI(this ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system

    The actor system that contains the DI extension.

    Returns
    Type Description
    DIActorSystemAdapter

    An adapter used to generate Props configuration objects using the DI extension.

    | Improve this Doc View Source

    DI(IActorContext)

    Creates an adapter used to generate Props configuration objects using the DI extension using a given actor context.

    Declaration
    public static DIActorContextAdapter DI(this IActorContext context)
    Parameters
    Type Name Description
    IActorContext context

    The actor context associated with a system that contains the DI extension.

    Returns
    Type Description
    DIActorContextAdapter

    An adapter used to generate Props configuration objects using the DI extension.

    | Improve this Doc View Source

    GetTypeValue(String)

    Retrieves the Type with a given name from the current AppDomain.

    Declaration
    public static Type GetTypeValue(this string typeName)
    Parameters
    Type Name Description
    String typeName

    The string representation of the type to retrieve.

    Returns
    Type Description
    Type

    The Type with the given name.

    In This Article
    • githubImprove this Doc
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET