Class EndpointServiceCollectionExtensions
Inheritance
System.Object
EndpointServiceCollectionExtensions
Namespace: Steeltoe.Management.Endpoint.Trace
Assembly: Steeltoe.Management.EndpointCore.dll
Syntax
public static class EndpointServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddTraceActuator(IServiceCollection, IConfiguration)
Adds components of the Trace actuator to Microsoft-DI
Declaration
public static void AddTraceActuator(this IServiceCollection services, IConfiguration config = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection to add trace to |
IConfiguration | config | Application configuration. Retrieved from the |
AddTraceActuator(IServiceCollection, IConfiguration, MediaTypeVersion)
Adds components of the Trace actuator to Microsoft-DI
Declaration
public static void AddTraceActuator(this IServiceCollection services, IConfiguration config, MediaTypeVersion version)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection to add trace to |
IConfiguration | config | Application configuration. Retrieved from the |
MediaTypeVersion | version | MediaTypeVersion to use in responses |