다음을 통해 공유


HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata 메서드

정의

오버로드

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

종속성 메타데이터를 추가합니다.

AddDownstreamDependencyMetadata<T>(IServiceCollection)

종속성 메타데이터를 추가합니다.

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Source:
HttpDiagnosticsServiceCollectionExtensions.cs
Source:
HttpDiagnosticsServiceCollectionExtensions.cs
Source:
HttpDiagnosticsServiceCollectionExtensions.cs

종속성 메타데이터를 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddDownstreamDependencyMetadata(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Http::Diagnostics::IDownstreamDependencyMetadata ^ downstreamDependencyMetadata);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDownstreamDependencyMetadata (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Http.Diagnostics.IDownstreamDependencyMetadata downstreamDependencyMetadata);
static member AddDownstreamDependencyMetadata : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Http.Diagnostics.IDownstreamDependencyMetadata -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDownstreamDependencyMetadata (services As IServiceCollection, downstreamDependencyMetadata As IDownstreamDependencyMetadata) As IServiceCollection

매개 변수

services
IServiceCollection

IServiceCollection개체 instance.

downstreamDependencyMetadata
IDownstreamDependencyMetadata

추가할 DownstreamDependencyMetadata 개체입니다.

반환

services의 값

적용 대상

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Source:
HttpDiagnosticsServiceCollectionExtensions.cs
Source:
HttpDiagnosticsServiceCollectionExtensions.cs
Source:
HttpDiagnosticsServiceCollectionExtensions.cs

종속성 메타데이터를 추가합니다.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Http::Diagnostics::IDownstreamDependencyMetadata[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddDownstreamDependencyMetadata(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDownstreamDependencyMetadata<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.Extensions.Http.Diagnostics.IDownstreamDependencyMetadata;
static member AddDownstreamDependencyMetadata : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.Extensions.Http.Diagnostics.IDownstreamDependencyMetadata)
<Extension()>
Public Function AddDownstreamDependencyMetadata(Of T As {Class, IDownstreamDependencyMetadata}) (services As IServiceCollection) As IServiceCollection

형식 매개 변수

T

IDownstreamDependencyMetadata등록할 instance.

매개 변수

services
IServiceCollection

IServiceCollection개체 instance.

반환

services의 값

적용 대상