Table of Contents

Class AutoPilot

Namespace
Akka.TestKit
Assembly
Akka.TestKit.dll

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.

public abstract class AutoPilot
Inheritance
AutoPilot
Derived
Inherited Members

Constructors

AutoPilot()

protected AutoPilot()

Properties

KeepRunning

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

public static KeepRunning KeepRunning { get; }

Property Value

KeepRunning

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.

public static NoAutoPilot NoAutoPilot { get; }

Property Value

NoAutoPilot

Methods

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.

public abstract AutoPilot Run(IActorRef sender, object message)

Parameters

sender IActorRef

The sender.

message object

The message.

Returns

AutoPilot

The AutoPilot to be used for the next round