Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
 public static IApplicationInfoProperties RemoveBlacklist([NotNull] this IApplicationInfoProperties properties)
 => properties.Remove(PropertyConstants.BlacklistProperty);
Esempio n. 3
0
 public static IApplicationInfoProperties RemoveExternalUrl([NotNull] this IApplicationInfoProperties properties)
 => properties.Remove(PropertyConstants.ExternalUrlProperty);