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