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.
public abstract class AutoPilot
- Inheritance
-
AutoPilot
- Derived
- Inherited Members
Constructors
AutoPilot()
protected AutoPilot()
Properties
KeepRunning
public static KeepRunning KeepRunning { get; }
Property Value
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
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
IActorRefThe sender.
message
objectThe message.