public static IApplicationInfoProperties SetReplicaTags([NotNull] this IApplicationInfoProperties properties, [NotNull] string replicaName, ReplicaTagKind replicaTagKind, TagCollection tags) { var propertyKey = new TagsPropertyKey(replicaName, replicaTagKind.ToString()); if (properties.GetReplicaKindTags(propertyKey).Equals(tags)) { return(properties); } return(tags?.Count > 0 ? properties.Set(propertyKey.ToString(), tags.ToString()) : properties.Remove(propertyKey.ToString())); }
public static IApplicationInfoProperties RemoveBlacklist([NotNull] this IApplicationInfoProperties properties) => properties.Remove(PropertyConstants.BlacklistProperty);
public static IApplicationInfoProperties RemoveExternalUrl([NotNull] this IApplicationInfoProperties properties) => properties.Remove(PropertyConstants.ExternalUrlProperty);