Class EndpointServiceCollectionExtensions
Inheritance
Namespace: Steeltoe.Management.Endpoint.Actuators.Health
Assembly: Steeltoe.Management.Endpoint.dll
Syntax
public static class EndpointServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddHealthActuator(IServiceCollection)
Adds the health actuator to the service container and configures the ASP.NET Core middleware pipeline.
Declaration
public static IServiceCollection AddHealthActuator(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |
AddHealthActuator(IServiceCollection, Boolean)
Adds the health actuator to the service container.
Declaration
public static IServiceCollection AddHealthActuator(this IServiceCollection services, bool configureMiddleware)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
System.Boolean | configureMiddleware | When |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |
AddHealthContributor(IServiceCollection, Type)
Adds the specified
Declaration
public static IServiceCollection AddHealthContributor(this IServiceCollection services, Type healthContributorType)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
Type | healthContributorType | The type of the health contributor to add. |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |
AddHealthContributor<T>(IServiceCollection)
Adds the specified
Declaration
public static IServiceCollection AddHealthContributor<T>(this IServiceCollection services)
where T : class, IHealthContributor
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The |
Returns
Type | Description |
---|---|
IServiceCollection | The incoming |
Type Parameters
Name | Description |
---|---|
T | The type of health contributor to add. |