private static IHealthChecksBuilder AddSignalRCheck(this IHealthChecksBuilder builder, IConfiguration configuration) { var baseUri = ConfigurationHandler.GetBaseUri(configuration); if (baseUri == null) { logger.Warn("SignalR Check: No valid BaseUrl found. Skipping check."); return(builder); } string absoluteUri = baseUri.AbsoluteUri; if (!absoluteUri.EndsWith("/")) { absoluteUri += "/"; } return(builder.AddSignalRHub($"{absoluteUri}hub")); }