Пример #1
0
        ActorRef IActorSystem.ActorOf(ActorPath path)
        {
            if (path == ActorPath.Empty)
            {
                throw new ArgumentException("ActorPath is empty", "path");
            }

            return(new ActorRef(path, ActorEndpoint.Invoker(path)));
        }
Пример #2
0
 public ActorRef(SerializationInfo info, StreamingContext context)
 {
     path     = ActorPath.From((string)info.GetValue("path", typeof(string)));
     invoker  = ActorEndpoint.Invoker(path);
     endpoint = invoker.GetProxy(path.ToString());
 }