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