Search Results for

    Show / Hide Table of Contents

    Class DIActorSystemAdapter

    This class represents an adapter used to generate Props configuration objects using the dependency injection (DI) extension using a given actor system.

    Inheritance
    Object
    DIActorSystemAdapter
    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 DIActorSystemAdapter

    Constructors

    | Improve this Doc View Source

    DIActorSystemAdapter(ActorSystem)

    Initializes a new instance of the DIActorSystemAdapter class.

    Declaration
    public DIActorSystemAdapter(ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system

    The actor system that contains the DI extension.

    Exceptions
    Type Condition
    ArgumentNullException

    This exception is thrown when the specified system is undefined.

    InvalidOperationException

    This exception is thrown when the Dependency Resolver has not been configured in the ActorSystem.

    Methods

    | 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.

    | Improve this Doc View Source

    Props<TActor>()

    Creates a Props configuration object for a given actor type.

    Declaration
    public Props Props<TActor>()
        where TActor : ActorBase
    Returns
    Type Description
    Props

    A Props configuration object for the given actor type.

    Type Parameters
    Name Description
    TActor

    The actor type for which to create the Props configuration.

    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