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
IServiceCollectionService collection to add trace to
config
IConfigurationApplication 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
IServiceCollectionService collection to add trace to
config
IConfigurationApplication configuration. Retrieved from the Microsoft.Extensions.DependencyInjection.IServiceCollection if not provided (this actuator looks for a settings starting with management:endpoints:trace)
version
MediaTypeVersionMediaTypeVersion to use in responses