Class EndpointServiceCollectionExtensions
Inheritance
Namespace: Steeltoe.Management.Endpoint.Health
Assembly: Steeltoe.Management.EndpointCore.dll
Syntax
public static class EndpointServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddHealthActuator(IServiceCollection, IConfiguration)
Adds components of the Health actuator to Microsoft-DI
Declaration
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection to add health to |
IConfiguration | config | Application configuration. Retrieved from the |
AddHealthActuator(IServiceCollection, IConfiguration, IHealthAggregator, Type[])
Adds components of the Health actuator to Microsoft-DI
Declaration
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config, IHealthAggregator aggregator, params Type[] contributors)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection to add health to |
IConfiguration | config | Application configuration. Retrieved from the |
IHealthAggregator | aggregator | Custom health aggregator |
Type[] | contributors | Contributors to application health |
AddHealthActuator(IServiceCollection, IConfiguration, Type[])
Adds components of the Health actuator to Microsoft-DI
Declaration
public static void AddHealthActuator(this IServiceCollection services, IConfiguration config = null, params Type[] contributors)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection to add health to |
IConfiguration | config | Application configuration. Retrieved from the |
Type[] | contributors | Contributors to application health |
AddHealthContributors(IServiceCollection, Type[])
Declaration
public static void AddHealthContributors(IServiceCollection services, params Type[] contributors)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | |
Type[] | contributors |