public override string ToString() { if (!Name.IsNullOrEmpty()) { return(PrefixClusterName(Name)); } return(Type != null?PrefixClusterName(Type.Name) : string.Empty); }
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); }