Exemple #1
0
 /// <summary>
 /// Spawns an actor as a child of this test actor with an auto-generated name and stopping supervisor strategy, returning the child's ActorRef.
 /// </summary>
 /// <param name="props">Child actor props</param>
 /// <returns></returns>
 public IActorRef ChildActorOf(Props props)
 {
     TestActor.Tell(new TestActor.Spawn(props, Option <string> .None, Option <SupervisorStrategy> .None));
     return(ExpectMsg <IActorRef>());
 }
Exemple #2
0
 void ICanTell.Tell(object message, IActorRef sender)
 {
     TestActor.Tell(message, sender);
 }
Exemple #3
0
 /// <summary>
 /// Spawns an actor as a child of this test actor, and returns the child's IActorRef
 /// </summary>
 /// <param name="props">Child actor props</param>
 /// <param name="name">Child actor name</param>
 /// <param name="supervisorStrategy">Supervisor strategy for the child actor</param>
 /// <returns></returns>
 public IActorRef ChildActorOf(Props props, string name, SupervisorStrategy supervisorStrategy)
 {
     TestActor.Tell(new TestActor.Spawn(props, name, supervisorStrategy));
     return(ExpectMsg <IActorRef>());
 }