src/Slugent.APIInfo/HealthInfo/EndpointRouteBuilderExtensionsHealth.cs
/// <summary>
/// Adds a configuration endpoint to the <see cref="IEndpointRouteBuilder"/> for the Health info.
/// </summary>
/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add endpoint to.</param>
/// <param name="optionsDelegate">The EndpointHealthConfig object</param>
/// <returns>A route for the endpoint.</returns>
Adds a configuration endpoint to the  for the Health info.
Adds a configuration endpoint to the for the Health info .
public static IEndpointConventionBuilder? MapSlugEntHealth(
			this IEndpointRouteBuilder endpoints)
		{
			if (endpoints == null) throw new ArgumentNullException(nameof(endpoints));
			HealthCheckProcessor healthCheckProcessor = endpoints.ServiceProvider.GetRequiredService<HealthCheckProcessor>();
			IAPIInfoBase apiInfoBase = endpoints.ServiceProvider.GetRequiredService<IAPIInfoBase>();
			string urlPattern = apiInfoBase.InfoRootPath + "/health";
			return MapHealthCore(endpoints, urlPattern);
		}
public static IEndpointConventionBuilder ? MapSlugEntHealth ( this IEndpointRouteBuilder endpoints ) { if ( endpoints == null ) throw new ArgumentNullException ( nameof ( endpoints ) ) ; HealthCheckProcessor healthCheckProcessor = endpoints . ServiceProvider . GetRequiredService < HealthCheckProcessor > ( ) ; IAPIInfoBase apiInfoBase = endpoints . ServiceProvider . GetRequiredService < IAPIInfoBase > ( ) ; string urlPattern = apiInfoBase . InfoRootPath + " " ; return MapHealthCore ( endpoints , urlPattern ) ; }
Adds a configuration endpoint to the  for the Health info.
Adds a configuration endpoint to the for the Health info .
//Action<EndpointHealthConfig>? optionsDelegate = default) //			var options = new EndpointHealthConfig(); //			optionsDelegate?.Invoke(options); //return MapHealthCore(endpoints, urlPattern, options);
A route for the endpoint.
A route for the endpoint .
IEndpointRouteBuilder
this
endpoints
The  to add endpoint to.
The to add endpoint to .
optionsDelegate
The EndpointHealthConfig object
The EndpointHealthConfig object