Class MySqlDependencyHealthServiceCollectionExtensions
Namespace: Cephalon.Observability.MySqlDependencies.Hosting
Assembly: Cephalon.Observability.MySqlDependencies.dll
Adds MySQL dependency-health services to a Cephalon host.
public static class MySqlDependencyHealthServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← MySqlDependencyHealthServiceCollectionExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddCephalonMySqlDependencyHealth(IServiceCollection, IConfiguration, Action<MySqlDependencyHealthOptions>?)
Section titled “ AddCephalonMySqlDependencyHealth(IServiceCollection, IConfiguration, Action<MySqlDependencyHealthOptions>?)”Adds MySQL dependency-health services using configuration as the primary source of probe settings.
public static IServiceCollection AddCephalonMySqlDependencyHealth(this IServiceCollection services, IConfiguration configuration, Action<MySqlDependencyHealthOptions>? configure = null)Parameters
Section titled “Parameters”services IServiceCollection
The target service collection.
configuration IConfiguration
The application configuration root.
configure Action<MySqlDependencyHealthOptions>?
An optional callback that can extend or override the configuration-driven dependency-health setup.
Returns
Section titled “Returns”The same service collection for further registration.
AddCephalonMySqlDependencyHealth(IServiceCollection, Action<MySqlDependencyHealthOptions>?)
Section titled “ AddCephalonMySqlDependencyHealth(IServiceCollection, Action<MySqlDependencyHealthOptions>?)”Adds MySQL dependency-health services using code-first configuration.
public static IServiceCollection AddCephalonMySqlDependencyHealth(this IServiceCollection services, Action<MySqlDependencyHealthOptions>? configure = null)Parameters
Section titled “Parameters”services IServiceCollection
The target service collection.
configure Action<MySqlDependencyHealthOptions>?
An optional callback that configures dependency-health options.
Returns
Section titled “Returns”The same service collection for further registration.