Table of Contents

Class EndpointServiceCollectionExtensions

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

Methods

AddInfoActuator(IServiceCollection)

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

public static IServiceCollection AddInfoActuator(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.

AddInfoActuator(IServiceCollection, bool)

Adds the info actuator to the service container.

public static IServiceCollection AddInfoActuator(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.

AddInfoContributor(IServiceCollection, Type)

Adds the specified IInfoContributor to the D/I container as a singleton service.

public static IServiceCollection AddInfoContributor(this IServiceCollection services, Type infoContributorType)

Parameters

services IServiceCollection

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

infoContributorType Type

The type of the info contributor to add.

Returns

IServiceCollection

The incoming services so that additional calls can be chained.

AddInfoContributor<T>(IServiceCollection)

Adds the specified IInfoContributor to the D/I container as a singleton service.

public static IServiceCollection AddInfoContributor<T>(this IServiceCollection services) where T : class, IInfoContributor

Parameters

services IServiceCollection

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

Returns

IServiceCollection

The incoming services so that additional calls can be chained.

Type Parameters

T

The type of info contributor to add.