public static HealthCheckBuilder AddUrlCheckIfNotNull(this HealthCheckBuilder builder, string url, TimeSpan cacheDuration)
        {
            if (!string.IsNullOrEmpty(url))
            {
                builder.AddUrlCheck(url, cacheDuration);
            }

            return(builder);
        }
        public static HealthCheckBuilder AddUrlCheckIfNotNull(this HealthCheckBuilder builder, string url)
        {
            if (!string.IsNullOrEmpty(url))
            {
                builder.AddUrlCheck(url);
            }

            return(builder);
        }
Ejemplo n.º 3
0
 protected override void AddHealthChecks(HealthCheckBuilder checks)
 {
     checks.AddUrlCheck("https://www.google.com");
 }