Udostępnij za pośrednictwem


MetricsBuilderExtensions.AddListener Metoda

Definicja

Przeciążenia

AddListener(IMetricsBuilder, IMetricsListener)

Rejestruje nowe IMetricsListener wystąpienie.

AddListener<T>(IMetricsBuilder)

Rejestruje nowy IMetricsListener typ T.

AddListener(IMetricsBuilder, IMetricsListener)

Źródło:
MetricsBuilderExtensions.Listeners.cs
Źródło:
MetricsBuilderExtensions.Listeners.cs

Rejestruje nowe IMetricsListener wystąpienie.

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

Parametry

builder
IMetricsBuilder

Element IMetricsBuilder.

listener
IMetricsListener

Typ implementacji odbiornika.

Zwraca

Zwraca oryginalny IMetricsBuilder element do tworzenia łańcuchów.

Dotyczy

AddListener<T>(IMetricsBuilder)

Źródło:
MetricsBuilderExtensions.Listeners.cs
Źródło:
MetricsBuilderExtensions.Listeners.cs

Rejestruje nowy IMetricsListener typ 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

Parametry typu

T

Typ implementacji odbiornika.

Parametry

builder
IMetricsBuilder

Element IMetricsBuilder.

Zwraca

Zwraca oryginalny IMetricsBuilder element do tworzenia łańcuchów.

Dotyczy