Search Results for

    Show / Hide Table of Contents

    Class Routee

    Generic base class for routees.

    Inheritance
    object
    Routee
    ActorRefRoutee
    ActorSelectionRoutee
    SeveralRoutees
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Routing
    Assembly: Akka.dll
    Syntax
    public class Routee

    Fields

    | Edit this page View Source

    NoRoutee

    Singleton instance for special case "no routee," for when no matching routees are found.

    Declaration
    public static readonly Routee NoRoutee
    Field Value
    Type Description
    Routee

    Methods

    | Edit this page View Source

    Ask(object, TimeSpan?)

    Ask a routee for a reply message in response to an input.

    Declaration
    public virtual Task<object> Ask(object message, TimeSpan? timeout)
    Parameters
    Type Name Description
    object message

    The message to send.

    TimeSpan? timeout

    Optional timeout parameter. If the parameter is provided and the operation times out, will throw an AskTimeoutException.

    Returns
    Type Description
    Task<object>

    A Task containing the response object.

    | Edit this page View Source

    FromActorRef(IActorRef)

    Helper method to create a new Routee instance from an IActorRef.

    Declaration
    public static Routee FromActorRef(IActorRef actorRef)
    Parameters
    Type Name Description
    IActorRef actorRef
    Returns
    Type Description
    Routee
    | Edit this page View Source

    Send(object, IActorRef)

    Send a message to the routee.

    Declaration
    public virtual void Send(object message, IActorRef sender)
    Parameters
    Type Name Description
    object message

    The message to send.

    IActorRef sender

    The sender, if any.

    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