Table of Contents

Class EndpointServiceCollectionExtensions

Namespace
Steeltoe.Management.Endpoint.Actuators.Refresh
Assembly
Steeltoe.Management.Endpoint.dll
public static class EndpointServiceCollectionExtensions
Inheritance
EndpointServiceCollectionExtensions
Inherited Members

Methods

AddRefreshActuator(IServiceCollection)

Adds the refresh actuator to the service container and configures the ASP.NET Core middleware pipeline.

public static IServiceCollection AddRefreshActuator(this IServiceCollection services)

Parameters

services IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

IServiceCollection

The incoming services so that additional calls can be chained.

AddRefreshActuator(IServiceCollection, bool)

Adds the refresh actuator to the service container.

public static IServiceCollection AddRefreshActuator(this IServiceCollection services, bool configureMiddleware)

Parameters

services IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

configureMiddleware bool

When 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 services so that additional calls can be chained.