Akka.Cluster.Tests.MultiNode.Routing.ClusterConsistentHashingRouterSpec.FullAddress C# (CSharp) Method

FullAddress() protected method

Fills in the self address for local ActorRef
protected FullAddress ( IActorRef actorRef ) : Akka.Actor.Address
actorRef IActorRef
return Akka.Actor.Address
        protected Address FullAddress(IActorRef actorRef)
        {
            if (string.IsNullOrEmpty(actorRef.Path.Address.Host) || !actorRef.Path.Address.Port.HasValue)
                return Cluster.SelfAddress;
            return actorRef.Path.Address;
        }