Search Results for

    Show / Hide Table of Contents

    Class DIActorContextAdapter

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

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

    Constructors

    | Improve this Doc View Source

    DIActorContextAdapter(IActorContext)

    Initializes a new instance of the DIActorContextAdapter class.

    Declaration
    public DIActorContextAdapter(IActorContext context)
    Parameters
    Type Name Description
    IActorContext context

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

    Exceptions
    Type Condition
    ArgumentNullException

    This exception is thrown when the specified context is undefined.

    InvalidOperationException

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

    Methods

    | Improve this Doc View Source

    ActorOf<TActor>(String)

    Obsolete. Use Props(Type) or Props<TActor>() methods for actor creation. This method will be removed in future versions.

    Declaration
    [Obsolete("Use Props methods for actor creation. This method will be removed in future versions")]
    public IActorRef ActorOf<TActor>(string name = null)
        where TActor : ActorBase
    Parameters
    Type Name Description
    String name

    N/A

    Returns
    Type Description
    IActorRef

    N/A

    Type Parameters
    Name Description
    TActor

    N/A

    | 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