/// <summary>
 /// Adds a health check route to the route collection.
 /// </summary>
 /// <param name="routes">The route collection.</param>
 /// <param name = "healthCheckRunnerName" >
 /// The name of the <see cref="IHealthCheckRunner"/> to use. If <see langword="null"/> or not provided,
 /// the default value of the <see cref="HealthCheck.GetRunner"/> method is used.
 /// </param>
 /// <param name="route">The route of the health endpoint.</param>
 /// <param name="indent">Whether to indent the JSON output.</param>
 public static void MapHealthRoute(this HttpRouteCollection routes,
                                   string healthCheckRunnerName = null, string route = "/health", bool indent = false)
 => routes.MapHealthRoute(HealthCheck.GetRunner(healthCheckRunnerName), route, indent);