Example #1
0
 /// <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));
 }
Example #2
0
 public SetAutoPilot(AutoPilot autoPilot)
 {
     _autoPilot = autoPilot;
 }
Example #3
0
 public SetAutoPilot(AutoPilot autoPilot) { _autoPilot = autoPilot; }
Example #4
0
 /// <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));
 }