예제 #1
0
        public override string ToString()
        {
            if (!Name.IsNullOrEmpty())
            {
                return(PrefixClusterName(Name));
            }

            return(Type != null?PrefixClusterName(Type.Name) : string.Empty);
        }
예제 #2
0
        private bool EqualsMarker(IndexName other)
        {
            if (other == null)
            {
                return(false);
            }
            if (!Name.IsNullOrEmpty() && !other.Name.IsNullOrEmpty())
            {
                return(EqualsString(PrefixClusterName(other, other.Name)));
            }

            if ((!Cluster.IsNullOrEmpty() || !other.Cluster.IsNullOrEmpty()) && Cluster != other.Cluster)
            {
                return(false);
            }

            return(Type != null && other?.Type != null && Type == other.Type);
        }