Compartir vía


MetricsBuilderExtensions.AddListener Método

Definición

Sobrecargas

AddListener(IMetricsBuilder, IMetricsListener)

Registra una nueva IMetricsListener instancia.

AddListener<T>(IMetricsBuilder)

Registra un nuevo IMetricsListener de tipo T.

AddListener(IMetricsBuilder, IMetricsListener)

Source:
MetricsBuilderExtensions.Listeners.cs
Source:
MetricsBuilderExtensions.Listeners.cs

Registra una nueva IMetricsListener instancia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ AddListener(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder, Microsoft::Extensions::Diagnostics::Metrics::IMetricsListener ^ listener);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder AddListener (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder, Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener listener);
static member AddListener : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder * Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function AddListener (builder As IMetricsBuilder, listener As IMetricsListener) As IMetricsBuilder

Parámetros

builder
IMetricsBuilder

El parámetro de cadena de consulta IMetricsBuilder.

listener
IMetricsListener

Tipo de implementación del agente de escucha.

Devoluciones

Devuelve el original IMetricsBuilder para el encadenamiento.

Se aplica a

AddListener<T>(IMetricsBuilder)

Source:
MetricsBuilderExtensions.Listeners.cs
Source:
MetricsBuilderExtensions.Listeners.cs

Registra un nuevo IMetricsListener de tipo T.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::Metrics::IMetricsListener[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ AddListener(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder AddListener<T> (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder) where T : class, Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener;
static member AddListener : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener)
<Extension()>
Public Function AddListener(Of T As {Class, IMetricsListener}) (builder As IMetricsBuilder) As IMetricsBuilder

Parámetros de tipo

T

Tipo de implementación del agente de escucha.

Parámetros

builder
IMetricsBuilder

El parámetro de cadena de consulta IMetricsBuilder.

Devoluciones

Devuelve el original IMetricsBuilder para el encadenamiento.

Se aplica a