Ejemplo n.º 1
0
        /// <summary>
        /// TBD
        /// </summary>
        /// <param name="address">TBD</param>
        /// <returns>TBD</returns>
        public string ToSerializationFormatWithAddress(Address address)
        {
            if (IgnoreActorRef.IsIgnoreRefPath(this))
            {
                // we never change address for IgnoreActorRef
                return(ToString());
            }
            var withAddress = ToStringWithAddress(address);
            var result      = AppendUidFragment(withAddress);

            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generate String representation, replacing the Address in the RootActorPath
        /// with the given one unless this path’s address includes host and port
        /// information.
        /// </summary>
        /// <param name="address"> The address. </param>
        /// <returns> System.String. </returns>
        public string ToStringWithAddress(Address address)
        {
            if (IgnoreActorRef.IsIgnoreRefPath(this))
            {
                // we never change address for IgnoreActorRef
                return(ToString());
            }
            if (Address.Host != null && Address.Port.HasValue)
            {
                return($"{Address}{Join()}");
            }

            return($"{address}{Join()}");
        }