private static IHealthChecksBuilder AddOtherTierURICheck(this IHealthChecksBuilder builder, IConfiguration configuration) { var serverRole = Web.GetCurrentServerRole(configuration); var url = ConfigurationHandler.GetOtherTierURL(configuration, serverRole); if (url == null) { logger.Info("Opposite's Tier (for N-Tier Architectures): URL of Opposite Tier not found. Skipping check"); return(builder); } var testName = serverRole == Web.ServerRole.Web ? "Application" : "Web"; builder.AddUrlGroup(url, name: testName); return(builder); }