/// <inheritdoc/> public override int GetHashCode() { return(TestActor.GetHashCode()); }
int IComparable <IActorRef> .CompareTo(IActorRef other) { return(TestActor.CompareTo(other)); }
/// <inheritdoc/> public int CompareTo(object obj) { return(TestActor.CompareTo(obj)); }
/// <inheritdoc/> public override bool Equals(object obj) { return(TestActor.Equals(obj)); }
ISurrogate ISurrogated.ToSurrogate(ActorSystem system) { return(TestActor.ToSurrogate(system)); }
void ICanTell.Tell(object message, IActorRef sender) { TestActor.Tell(message, sender); }
bool IEquatable <IActorRef> .Equals(IActorRef other) { return(TestActor.Equals(other)); }
/// <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>()); }
/// <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>()); }