Class RedisDependencyHealthServiceCollectionExtensions
Namespace: Cephalon.Observability.RedisDependencies.Hosting
Assembly: Cephalon.Observability.RedisDependencies.dll
Adds Redis dependency-health services to a Cephalon host.
public static class RedisDependencyHealthServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← RedisDependencyHealthServiceCollectionExtensions
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”AddCephalonRedisDependencyHealth(IServiceCollection, IConfiguration, Action<RedisDependencyHealthOptions>?)
Section titled “ AddCephalonRedisDependencyHealth(IServiceCollection, IConfiguration, Action<RedisDependencyHealthOptions>?)”Adds Redis dependency-health services using configuration as the primary source of probe settings.
public static IServiceCollection AddCephalonRedisDependencyHealth(this IServiceCollection services, IConfiguration configuration, Action<RedisDependencyHealthOptions>? configure = null)Parameters
Section titled “Parameters”services IServiceCollection
The target service collection.
configuration IConfiguration
The application configuration root.
configure Action<RedisDependencyHealthOptions>?
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.
AddCephalonRedisDependencyHealth(IServiceCollection, Action<RedisDependencyHealthOptions>?)
Section titled “ AddCephalonRedisDependencyHealth(IServiceCollection, Action<RedisDependencyHealthOptions>?)”Adds Redis dependency-health services using code-first configuration.
public static IServiceCollection AddCephalonRedisDependencyHealth(this IServiceCollection services, Action<RedisDependencyHealthOptions>? configure = null)Parameters
Section titled “Parameters”services IServiceCollection
The target service collection.
configure Action<RedisDependencyHealthOptions>?
An optional callback that configures dependency-health options.
Returns
Section titled “Returns”The same service collection for further registration.