Ejemplo n.º 1
0
 public static IApplicationInfoProperties SetEphemeralReplicaTags([NotNull] this IApplicationInfoProperties properties, [NotNull] string replicaName, TagCollection tags)
 => properties.SetReplicaTags(replicaName, ReplicaTagKind.Ephemeral, tags);
Ejemplo n.º 2
0
 public static IApplicationInfoProperties RemoveExternalUrl([NotNull] this IApplicationInfoProperties properties)
 => properties.Remove(PropertyConstants.ExternalUrlProperty);
Ejemplo n.º 3
0
 public static IApplicationInfoProperties SetBlacklist([NotNull] this IApplicationInfoProperties properties, [NotNull] IEnumerable <Uri> blacklist)
 => properties.Set(PropertyConstants.BlacklistProperty, string.Join(PropertyConstants.BlacklistItemSeparator, blacklist));
Ejemplo n.º 4
0
 public static IApplicationInfoProperties SetPersistentReplicaTags([NotNull] this IApplicationInfoProperties properties, [NotNull] string replicaName, TagCollection tags)
 => properties.SetReplicaTags(replicaName, ReplicaTagKind.Persistent, tags);
Ejemplo n.º 5
0
 public static IReadOnlyDictionary <string, TagCollection> GetTags([NotNull] this IApplicationInfoProperties properties)
 => PropertiesHelper.GetTags(properties);
Ejemplo n.º 6
0
 public static IApplicationInfoProperties SetExternalUrl([NotNull] this IApplicationInfoProperties properties, [NotNull] Uri externalUrl)
 => properties.Set(PropertyConstants.ExternalUrlProperty, externalUrl.ToString());
Ejemplo n.º 7
0
 public static TagCollection GetReplicaTags([NotNull] this IApplicationInfoProperties properties, [NotNull] string replicaName)
 => PropertiesHelper.GetReplicaTags(properties, replicaName);
Ejemplo n.º 8
0
 public static ReplicaWeights GetReplicaWeights([NotNull] this IApplicationInfoProperties properties)
 => PropertiesHelper.GetReplicaWeights(properties);
Ejemplo n.º 9
0
 public static Uri[] GetBlacklist([NotNull] this IApplicationInfoProperties properties)
 => PropertiesHelper.GetBlacklist(properties);
Ejemplo n.º 10
0
 public static Uri GetExternalUrl([NotNull] this IApplicationInfoProperties properties)
 => PropertiesHelper.GetExternalUrl(properties);
Ejemplo n.º 11
0
 public static IApplicationInfoProperties RemoveBlacklist([NotNull] this IApplicationInfoProperties properties)
 => properties.Remove(PropertyConstants.BlacklistProperty);