internal IInternalActorRef ResolveActorRef(IInternalActorRef actorRef, IReadOnlyCollection <string> pathElements) { if (pathElements.Count == 0) { _log.Debug("Resolve of empty path sequence fails (per definition)"); return(_deadLetters); } var child = actorRef.GetChild(pathElements); if (child.IsNobody()) { _log.Debug("Resolve of path sequence [/{0}] failed", ActorPath.FormatPathElements(pathElements)); return(new EmptyLocalActorRef(_system.Provider, actorRef.Path / pathElements, _eventStream)); } return((IInternalActorRef)child); }
internal IInternalActorRef ResolveActorRef(IInternalActorRef actorRef, IReadOnlyCollection<string> pathElements) { if(pathElements.Count == 0) { _log.Debug("Resolve of empty path sequence fails (per definition)"); return _deadLetters; } var child = actorRef.GetChild(pathElements); if(child.IsNobody()) { _log.Debug("Resolve of path sequence [/{0}] failed", ActorPath.FormatPathElements(pathElements)); return new EmptyLocalActorRef(_system.Provider, actorRef.Path / pathElements, _eventStream); } return (IInternalActorRef)child; }
public IActorRef GetChild(IEnumerable <string> name) { return(_delegate.GetChild(name)); }