IHealthCheckSettings Interface
Settings that control health check behavior of the service. As for now, these settings only contain ShutdownTimeout, which is used to configure the GracefulShutdown.
public interface IHealthCheckSettingsProperties
Section titled “Properties”IHealthCheckSettings.Defaults Property
Section titled “IHealthCheckSettings.Defaults Property”The default settings applied when no configuration section is present.
static HAKOM.Http.Core.Net.Api.IHealthCheckSettings Defaults { get; }Property Value
Section titled “Property Value”IHealthCheckSettings.Key Property
Section titled “IHealthCheckSettings.Key Property”The configuration section key under which these settings are stored.
static string Key { get; }Property Value
Section titled “Property Value”IHealthCheckSettings.ShutdownTimeout Property
Section titled “IHealthCheckSettings.ShutdownTimeout Property”The maximum time the host waits for in-flight requests to complete after a stop signal is received before forcefully terminating.
System.TimeSpan ShutdownTimeout { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”IHealthCheckSettings.TryRead(IConfigurationSection) Method
Section titled “IHealthCheckSettings.TryRead(IConfigurationSection) Method”Reads the health check settings from the given configuration section, falling back to Defaults for any value that is not configured.
static HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.Http.Core.Net.Api.IHealthCheckSettings> TryRead(Microsoft.Extensions.Configuration.IConfigurationSection section);Parameters
Section titled “Parameters”section Microsoft.Extensions.Configuration.IConfigurationSection
The configuration section to read the settings from.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<IHealthCheckSettings>
A Result<TValue> containing the parsed settings, or a failure if the section could not be read.