Class EndpointServiceCollectionExtensions
- Namespace
- Steeltoe.Management.Endpoint.Actuators.Environment
- Assembly
- Steeltoe.Management.Endpoint.dll
public static class EndpointServiceCollectionExtensions
- Inheritance
-
EndpointServiceCollectionExtensions
- Inherited Members
Methods
AddEnvironmentActuator(IServiceCollection)
Adds the environment actuator to the service container and configures the ASP.NET Core middleware pipeline.
public static IServiceCollection AddEnvironmentActuator(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.
AddEnvironmentActuator(IServiceCollection, bool)
Adds the environment actuator to the service container.
public static IServiceCollection AddEnvironmentActuator(this IServiceCollection services, bool configureMiddleware)
Parameters
servicesIServiceCollectionThe IServiceCollection to add services to.
configureMiddlewareboolWhen
false, skips configuration of the ASP.NET Core middleware pipeline. While this provides full control over the pipeline order, it requires manual addition of the appropriate middleware for actuators to work correctly.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.