public ClientActor() { var log = Context.GetLogger(); Receive <SendPing>(_ => { var actorPath = Util.ActorPath(_rnd.Next(0, Consts.TotalActors)); log.Info($"Sending ping to {actorPath}"); _clusterClient.Tell(new ClusterClient.Send(actorPath, new Ping(Self, "PING!"))); }); Receive <Pong>(pong => { log.Info($"Received pong: {pong.Payload}"); }); }