예제 #1
0
        /// <inheritdoc/>
        public override string ToString()
        {
            switch (Routee)
            {
            case ActorRefRoutee actorRef:
                return(ToStringWithFullAddress(actorRef.Actor.Path));

            case ActorSelectionRoutee selection:
                return(ToStringWithFullAddress(selection.Selection.Anchor.Path).TrimEnd('/') +
                       selection.Selection.PathString);

            default:
                return(Routee.ToString());
            }
        }
예제 #2
0
 public override string ToString()
 {
     if (Routee is ActorRefRoutee)
     {
         var actorRef = Routee as ActorRefRoutee;
         return(ToStringWithFullAddress(actorRef.Actor.Path));
     }
     else if (Routee is ActorSelectionRoutee)
     {
         var selection = Routee as ActorSelectionRoutee;
         return(ToStringWithFullAddress(selection.Selection.Anchor.Path) + selection.Selection.PathString);
     }
     else
     {
         return(Routee.ToString());
     }
 }