private static void Task1() { Logger.LogTaskInfo(); var ping = new Ping(); var pong = new Pong(); ping.OnPing += pong.DoPong; pong.OnPong += ping.DoPing; ping.DoPing(); }