/// <summary> /// Install an <see cref="AutoPilot" /> to drive the <see cref="TestActor" />. /// The <see cref="AutoPilot" /> will be run 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 the /// same <see cref="AutoPilot" /> return <see cref="AutoPilot.KeepRunning" /> /// </summary> /// <param name="pilot">The pilot to install.</param> public void SetAutoPilot(AutoPilot pilot) { _testActor.Tell(new TestActor.SetAutoPilot(pilot)); }
public SetAutoPilot(AutoPilot autoPilot) { _autoPilot = autoPilot; }
/// <summary> /// Install an <see cref="AutoPilot" /> to drive the <see cref="TestActor" />. /// The <see cref="AutoPilot" /> will be run 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 the /// same <see cref="AutoPilot" /> return <see cref="AutoPilot.KeepRunning" /> /// </summary> /// <param name="pilot">The pilot to install.</param> public void SetAutoPilot(AutoPilot pilot) { _testState.TestActor.Tell(new TestActor.SetAutoPilot(pilot)); }