MetricsServiceExtensions.AddMetrics Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddMetrics(IServiceCollection) |
Agrega servicios de métricas al especificado IServiceCollection. |
AddMetrics(IServiceCollection, Action<IMetricsBuilder>) |
Agrega servicios de métricas al especificado IServiceCollection. |
AddMetrics(IServiceCollection)
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
Agrega servicios de métricas al especificado IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddMetrics(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMetrics (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddMetrics : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMetrics (services As IServiceCollection) As IServiceCollection
Parámetros
- services
- IServiceCollection
La interfaz IServiceCollection a la que se van a agregar los servicios.
Devoluciones
La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.
Se aplica a
AddMetrics(IServiceCollection, Action<IMetricsBuilder>)
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
- Source:
- MetricsServiceExtensions.cs
Agrega servicios de métricas al especificado IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddMetrics(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMetrics (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> configure);
static member AddMetrics : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMetrics (services As IServiceCollection, configure As Action(Of IMetricsBuilder)) As IServiceCollection
Parámetros
- services
- IServiceCollection
La interfaz IServiceCollection a la que se van a agregar los servicios.
- configure
- Action<IMetricsBuilder>
Devolución de llamada para configurar .IMetricsBuilder
Devoluciones
La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.