Beispiel #1
0
 public void Ping(IPonger ponger)
 {
     if (++count >= 10)
     {
         self.Stop();
         ponger.Stop();
         System.Console.WriteLine("Enough ping/pong. Stopped now.");
     }
     else
     {
         ponger.Pong(self);
     }
 }
Beispiel #2
0
 public void Ping(IPonger ponger)
 {
     ++_count;
     Logger.Log("ping " + _count);
     if (_count >= 10)
     {
         _self.Stop();
         ponger.Stop();
     }
     else
     {
         ponger.Pong(_self);
     }
 }
Beispiel #3
0
 public void Ping(IPonger ponger)
 {
     if (++_count >= 10)
     {
         _self.Stop();
         ponger.Stop();
         Logger.Debug("Enough ping/pong. Stopped now.");
     }
     else
     {
         Logger.Debug($"Ping to ponger with count {_count}");
         ponger.Pong(_self);
     }
 }