예제 #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);
     }
 }
예제 #2
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);
     }
 }
예제 #3
0
 public void Ping(IPonger ponger)
 {
     ++_count;
     Logger.Log("ping " + _count);
     if (_count >= 10)
     {
         _self.Stop();
         ponger.Stop();
     }
     else
     {
         ponger.Pong(_self);
     }
 }
예제 #4
0
 public void Ping()
 {
     m_Ponger.Pong(Ping);
 }