public void Ping(IPonger ponger) { if (++count >= 10) { self.Stop(); ponger.Stop(); System.Console.WriteLine("Enough ping/pong. Stopped now."); } else { ponger.Pong(self); } }
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); } }
public void Ping(IPonger ponger) { ++_count; Logger.Log("ping " + _count); if (_count >= 10) { _self.Stop(); ponger.Stop(); } else { ponger.Pong(_self); } }
public void Ping() { m_Ponger.Pong(Ping); }