ActorRef IActorSystem.ActorOf(ActorPath path) { if (path == ActorPath.Empty) { throw new ArgumentException("ActorPath is empty", "path"); } return(new ActorRef(path, ActorEndpoint.Invoker(path))); }
public ActorRef(SerializationInfo info, StreamingContext context) { path = ActorPath.From((string)info.GetValue("path", typeof(string))); invoker = ActorEndpoint.Invoker(path); endpoint = invoker.GetProxy(path.ToString()); }