Search Results for

    Show / Hide Table of Contents

    Class DIActorProducer

    This class represents an actor creation strategy that uses dependency injection (DI) to resolve and instantiate actors based on their type.

    Inheritance
    Object
    DIActorProducer
    Implements
    IIndirectActorProducer
    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 DIActorProducer : IIndirectActorProducer

    Constructors

    | Improve this Doc View Source

    DIActorProducer(IDependencyResolver, Type)

    Initializes a new instance of the DIActorProducer class.

    Declaration
    public DIActorProducer(IDependencyResolver dependencyResolver, Type actorType)
    Parameters
    Type Name Description
    IDependencyResolver dependencyResolver

    The resolver used to resolve the given actor type.

    Type actorType

    The type of actor that this producer creates.

    Exceptions
    Type Condition
    ArgumentNullException

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

    Properties

    | Improve this Doc View Source

    ActorType

    Retrieves the type of the actor to produce.

    Declaration
    public Type ActorType { get; }
    Property Value
    Type Description
    Type

    Methods

    | Improve this Doc View Source

    Produce()

    Creates an actor based on the container's implementation specific actor factory.

    Declaration
    public ActorBase Produce()
    Returns
    Type Description
    ActorBase

    An actor created by the container.

    | Improve this Doc View Source

    Release(ActorBase)

    Signals the container that it can release its reference to the actor.

    Declaration
    public void Release(ActorBase actor)
    Parameters
    Type Name Description
    ActorBase actor

    The actor to remove from the container.

    Implements

    IIndirectActorProducer

    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