Search Results for

    Show / Hide Table of Contents

    Interface IIndirectActorProducer

    This interface defines a class of actor creation strategies deviating from the usual default of just reflectively instantiating the Actor subclass. It can be used to allow a dependency injection framework to determine the actual actor class and how it shall be instantiated.

    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public interface IIndirectActorProducer

    Properties

    | Edit this page View Source

    ActorType

    This method is used by Props to determine the type of actor to create. The returned type is not used to produce the actor.

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

    The type of the actor created.

    Methods

    | Edit this page View Source

    Produce()

    This factory method must produce a fresh actor instance upon each invocation. It is not permitted to return the same instance more than once.

    Declaration
    ActorBase Produce()
    Returns
    Type Description
    ActorBase

    A fresh actor instance.

    | Edit this page View Source

    Release(ActorBase)

    This method is used by Props to signal the producer that it can release it's reference. To learn more about using Dependency Injection in .NET, see HERE.

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

    The actor to release

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • 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