Class EndpointServiceCollectionExtensions
- Namespace
- Steeltoe.Management.Endpoint.Health
- Assembly
- Steeltoe.Management.EndpointCore.dll
public static class EndpointServiceCollectionExtensions
- Inheritance
-
EndpointServiceCollectionExtensions
- Inherited Members
Methods
AddHealthActuator(IServiceCollection, IConfiguration)
Adds components of the Health actuator to Microsoft-DI
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config = null)
Parameters
services
IServiceCollectionService collection to add health to
config
IConfigurationApplication configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:health)
AddHealthActuator(IServiceCollection, IConfiguration, IHealthAggregator, params Type[])
Adds components of the Health actuator to Microsoft-DI
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config, IHealthAggregator aggregator, params Type[] contributors)
Parameters
services
IServiceCollectionService collection to add health to
config
IConfigurationApplication configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:health)
aggregator
IHealthAggregatorCustom health aggregator
contributors
Type[]Contributors to application health
AddHealthActuator(IServiceCollection, IConfiguration, params Type[])
Adds components of the Health actuator to Microsoft-DI
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config = null, params Type[] contributors)
Parameters
services
IServiceCollectionService collection to add health to
config
IConfigurationApplication configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:health)
contributors
Type[]Contributors to application health
AddHealthContributors(IServiceCollection, params Type[])
public static void AddHealthContributors(IServiceCollection services, params Type[] contributors)
Parameters
services
IServiceCollectioncontributors
Type[]