예제 #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     return(TestActor.GetHashCode());
 }
예제 #2
0
 int IComparable <IActorRef> .CompareTo(IActorRef other)
 {
     return(TestActor.CompareTo(other));
 }
예제 #3
0
 /// <inheritdoc/>
 public int CompareTo(object obj)
 {
     return(TestActor.CompareTo(obj));
 }
예제 #4
0
 /// <inheritdoc/>
 public override bool Equals(object obj)
 {
     return(TestActor.Equals(obj));
 }
예제 #5
0
 ISurrogate ISurrogated.ToSurrogate(ActorSystem system)
 {
     return(TestActor.ToSurrogate(system));
 }
예제 #6
0
 void ICanTell.Tell(object message, IActorRef sender)
 {
     TestActor.Tell(message, sender);
 }
예제 #7
0
 bool IEquatable <IActorRef> .Equals(IActorRef other)
 {
     return(TestActor.Equals(other));
 }
예제 #8
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>());
 }
예제 #9
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>());
 }