Partilhar via


HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Método

Definição

Sobrecargas

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Adiciona metadados de dependência.

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Adiciona metadados de dependência.

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Origem:
HttpDiagnosticsServiceCollectionExtensions.cs
Origem:
HttpDiagnosticsServiceCollectionExtensions.cs
Origem:
HttpDiagnosticsServiceCollectionExtensions.cs

Adiciona metadados de dependência.

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

Parâmetros

services
IServiceCollection

IServiceCollection instância do objeto.

downstreamDependencyMetadata
IDownstreamDependencyMetadata

Objeto DownstreamDependencyMetadata a ser adicionado.

Retornos

O valor de services.

Aplica-se a

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Origem:
HttpDiagnosticsServiceCollectionExtensions.cs
Origem:
HttpDiagnosticsServiceCollectionExtensions.cs
Origem:
HttpDiagnosticsServiceCollectionExtensions.cs

Adiciona metadados de dependência.

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

Parâmetros de tipo

T

IDownstreamDependencyMetadata instância a ser registrada.

Parâmetros

services
IServiceCollection

IServiceCollection instância do objeto.

Retornos

O valor de services.

Aplica-se a