Search Results for

    Show / Hide Table of Contents

    Class AutoPilot

    Creates an AutoPilot.

    An AutoPilot will be called for each received message and can be used to send or forward messages, etc.

    Each invocation must return the AutoPilot for the next round.

    To reuse an AutoPilot for the next message either return the instance or return KeepRunning.

    Return NoAutoPilot to stop handling messages.

    Inheritance
    object
    AutoPilot
    DelegateAutoPilot
    KeepRunning
    NoAutoPilot
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.TestKit
    Assembly: Akka.TestKit.dll
    Syntax
    public abstract class AutoPilot

    Properties

    | Edit this page View Source

    KeepRunning

    When returned by another AutoPilot then TestActor will reuse the AutoPilot for the next message.

    Declaration
    public static KeepRunning KeepRunning { get; }
    Property Value
    Type Description
    KeepRunning
    | Edit this page View Source

    NoAutoPilot

    When returned by another AutoPilot then no action will be performed by the TestActor for the next message. This is the default AutoPilot used by AutoPilot.

    Declaration
    public static NoAutoPilot NoAutoPilot { get; }
    Property Value
    Type Description
    NoAutoPilot

    Methods

    | Edit this page View Source

    Run(IActorRef, object)

    This function will be called for each received message and can be used to send or forward messages, etc.

    Each invocation must return the AutoPilot for the next round.

    Declaration
    public abstract AutoPilot Run(IActorRef sender, object message)
    Parameters
    Type Name Description
    IActorRef sender

    The sender.

    object message

    The message.

    Returns
    Type Description
    AutoPilot

    The AutoPilot to be used for the next round

    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