Akka.Routing.SmallestMailboxRoutingLogic.TryGetActorCell C# (CSharp) Method

TryGetActorCell() private method

private TryGetActorCell ( Routee routee ) : ICell
routee Routee
return ICell
        private ICell TryGetActorCell(Routee routee)
        {
            var refRoutee = routee as ActorRefRoutee;
            if (refRoutee != null)
            {
                var actorRef = refRoutee.Actor as ActorRefWithCell;
                if (actorRef != null)
                {
                    return actorRef.Underlying;
                }
            }
            return null;
        }
    }