Class TelemetryConsumptionExtensions
Inheritance
System.Object
TelemetryConsumptionExtensions
Assembly: Yarp.Telemetry.Consumption.dll
Syntax
public static class TelemetryConsumptionExtensions : object
Methods
|
Improve this Doc
View Source
AddMetricsConsumer(IServiceCollection, Object)
Registers a consumer singleton for every IMetricsConsumer interface it implements.
Declaration
public static IServiceCollection AddMetricsConsumer(this IServiceCollection services, object consumer)
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
System.Object |
consumer |
|
Returns
Type |
Description |
IServiceCollection |
|
|
Improve this Doc
View Source
AddMetricsConsumer<TConsumer>(IServiceCollection)
Registers a consumer singleton for every IMetricsConsumer interface it implements.
Declaration
public static IServiceCollection AddMetricsConsumer<TConsumer>(this IServiceCollection services)
where TConsumer : class
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
Returns
Type |
Description |
IServiceCollection |
|
Type Parameters
Name |
Description |
TConsumer |
|
|
Improve this Doc
View Source
AddTelemetryConsumer(IServiceCollection, Object)
Registers a consumer singleton for every I*TelemetryConsumer interface it implements.
Declaration
public static IServiceCollection AddTelemetryConsumer(this IServiceCollection services, object consumer)
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
System.Object |
consumer |
|
Returns
Type |
Description |
IServiceCollection |
|
|
Improve this Doc
View Source
AddTelemetryConsumer<TConsumer>(IServiceCollection)
Registers a TConsumer
singleton for every I*TelemetryConsumer interface it implements.
Declaration
public static IServiceCollection AddTelemetryConsumer<TConsumer>(this IServiceCollection services)
where TConsumer : class
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
Returns
Type |
Description |
IServiceCollection |
|
Type Parameters
Name |
Description |
TConsumer |
|
|
Improve this Doc
View Source
AddTelemetryListeners(IServiceCollection)
Registers all telemetry listeners (Forwarder, Kestrel, Http, NameResolution, NetSecurity, Sockets and WebSockets).
Declaration
public static IServiceCollection AddTelemetryListeners(this IServiceCollection services)
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
Returns
Type |
Description |
IServiceCollection |
|