public Entity() { Receive<int>(id => Sender.Tell(id)); Receive<StopEntity>(_ => Context.Stop(Self)); } }