Partager via


MetricsBuilderExtensions.AddListener Méthode

Définition

Surcharges

AddListener(IMetricsBuilder, IMetricsListener)

Inscrit une nouvelle IMetricsListener instance.

AddListener<T>(IMetricsBuilder)

Inscrit un nouveau IMetricsListener de type T.

AddListener(IMetricsBuilder, IMetricsListener)

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

Inscrit une nouvelle IMetricsListener instance.

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

Paramètres

listener
IMetricsListener

Type d’implémentation de l’écouteur.

Retours

Retourne l’original IMetricsBuilder pour le chaînage.

S’applique à

AddListener<T>(IMetricsBuilder)

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

Inscrit un nouveau IMetricsListener de type 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

Paramètres de type

T

Type d’implémentation de l’écouteur.

Paramètres

Retours

Retourne l’original IMetricsBuilder pour le chaînage.

S’applique à