Search Results for

    Show / Hide Table of Contents

    Class ActorRefExtensions

    This class contains extension methods used for working with ActorRefs.

    Inheritance
    object
    ActorRefExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public static class ActorRefExtensions

    Methods

    | Edit this page View Source

    GetOrElse(IActorRef, Func<IActorRef>)

    Returns the actorRef's value if it's not null, Nobody, or DeadLetterActorRef. Otherwise return the result of evaluating elseValue.

    Declaration
    public static IActorRef GetOrElse(this IActorRef actorRef, Func<IActorRef> elseValue)
    Parameters
    Type Name Description
    IActorRef actorRef

    The actor that is being tested.

    Func<IActorRef> elseValue

    TBD

    Returns
    Type Description
    IActorRef
    | Edit this page View Source

    IsNobody(IActorRef)

    Determines if the specified actorRef is invalid. An actorRef is thought to be invalid if it's one of the following: null, Nobody, and DeadLetterActorRef

    Declaration
    public static bool IsNobody(this IActorRef actorRef)
    Parameters
    Type Name Description
    IActorRef actorRef

    The actor that is being tested.

    Returns
    Type Description
    bool

    true if the actorRef is invalid; otherwise false.

    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