Table of Contents

Class EndpointServiceCollectionExtensions

Namespace
Steeltoe.Management.Endpoint.Trace
Assembly
Steeltoe.Management.EndpointCore.dll
public static class EndpointServiceCollectionExtensions
Inheritance
EndpointServiceCollectionExtensions
Inherited Members

Methods

AddTraceActuator(IServiceCollection, IConfiguration)

Adds components of the Trace actuator to Microsoft-DI

public static void AddTraceActuator(this IServiceCollection services, IConfiguration config = null)

Parameters

services IServiceCollection

Service collection to add trace to

config IConfiguration

Application configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:trace)

AddTraceActuator(IServiceCollection, IConfiguration, MediaTypeVersion)

Adds components of the Trace actuator to Microsoft-DI

public static void AddTraceActuator(this IServiceCollection services, IConfiguration config, MediaTypeVersion version)

Parameters

services IServiceCollection

Service collection to add trace to

config IConfiguration

Application configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:trace)

version MediaTypeVersion

MediaTypeVersion to use in responses