Search Results for

    Show / Hide Table of Contents

    Interface IActorRefFactory

    Interface IActorRefFactory

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

    Methods

    | Edit this page View Source

    ActorOf(Props, string)

    Creates a new child actor of this context with the given name, which must not start with "$". If the given name is already in use, then an InvalidActorNameException is thrown.

    See Props for details on how to obtain a Props object.

    Declaration
    IActorRef ActorOf(Props props, string name = null)
    Parameters
    Type Name Description
    Props props

    The props used to create this actor.

    string name

    Optional. The name of this actor.

    Returns
    Type Description
    IActorRef

    A newly created actor that uses the specified props.

    Exceptions
    Type Condition
    InvalidActorNameException

    Thrown if the given name is invalid or already in use

    ConfigurationException

    Thrown if deployment, dispatcher or mailbox configuration is wrong

    | Edit this page View Source

    ActorSelection(ActorPath)

    Constructs an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.

    Declaration
    ActorSelection ActorSelection(ActorPath actorPath)
    Parameters
    Type Name Description
    ActorPath actorPath

    The actor path used as the base of the actor selection.

    Returns
    Type Description
    ActorSelection

    An ActorSelection based on the specified actorPath.

    | Edit this page View Source

    ActorSelection(string)

    Constructs an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.

    Declaration
    ActorSelection ActorSelection(string actorPath)
    Parameters
    Type Name Description
    string actorPath

    The actor path used as the base of the actor selection.

    Returns
    Type Description
    ActorSelection

    An ActorSelection based on the specified actorPath.

    Extension Methods

    ActorRefFactoryExtensions.ActorOf<TActor>(IActorRefFactory, string)
    ActorRefFactoryExtensions.ActorSelection(IActorRefFactory, IActorRef, string)
    ActExtensions.ActorOf(IActorRefFactory, Action<IActorDsl, IActorContext>, string)
    ActExtensions.ActorOf(IActorRefFactory, Action<IActorDsl>, string)
    ActorMaterializerExtensions.Materializer(IActorRefFactory, ActorMaterializerSettings, string)
    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