/// <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()); } }
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()); } }