다음을 통해 공유


MetricsServiceExtensions.AddMetrics 메서드

정의

오버로드

AddMetrics(IServiceCollection)

지정된 IServiceCollection에 메트릭 서비스를 추가합니다.

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

지정된 IServiceCollection에 메트릭 서비스를 추가합니다.

AddMetrics(IServiceCollection)

Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs

지정된 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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs
Source:
MetricsServiceExtensions.cs

지정된 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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

configure
Action<IMetricsBuilder>

를 구성하는 콜백입니다 IMetricsBuilder.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상