다음을 통해 공유


MetricsBuilderExtensions.AddListener 메서드

정의

오버로드

AddListener(IMetricsBuilder, IMetricsListener)

IMetricsListener instance 등록합니다.

AddListener<T>(IMetricsBuilder)

형식의 새 IMetricsListenerT등록합니다.

AddListener(IMetricsBuilder, IMetricsListener)

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

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

매개 변수

listener
IMetricsListener

수신기의 구현 유형입니다.

반환

체인에 대한 원본 IMetricsBuilder 을 반환합니다.

적용 대상

AddListener<T>(IMetricsBuilder)

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

형식의 새 IMetricsListenerT등록합니다.

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

형식 매개 변수

T

수신기의 구현 유형입니다.

매개 변수

반환

체인에 대한 원본 IMetricsBuilder 을 반환합니다.

적용 대상