Search Results for

    Show / Hide Table of Contents

    Class DIExt

    This class represents an ActorSystem extension used to create Props configuration objects using a dependency injection (DI) container.

    Inheritance
    Object
    DIExt
    Implements
    IExtension
    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 class DIExt : IExtension

    Methods

    | Improve this Doc View Source

    Initialize(IDependencyResolver)

    Initializes the extension to use a given DI resolver.

    Declaration
    public void Initialize(IDependencyResolver dependencyResolver)
    Parameters
    Type Name Description
    IDependencyResolver dependencyResolver

    The resolver used to resolve types from the DI container.

    Exceptions
    Type Condition
    ArgumentNullException

    This exception is thrown when the specified dependencyResolver is undefined.

    | Improve this Doc View Source

    Props(Type)

    Creates a Props configuration object for a given actor type.

    Declaration
    public Props Props(Type actorType)
    Parameters
    Type Name Description
    Type actorType

    The actor type for which to create the Props configuration.

    Returns
    Type Description
    Props

    A Props configuration object for the given actor type.

    Implements

    IExtension

    Extension Methods

    PatternMatch.Match(Object)
    PatternMatch.Match<T>(Object)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(Object)
    ObjectExtensions.IsDefaultForType<T>(T)
    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