Поделиться через


HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Метод

Определение

Перегрузки

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Добавляет метаданные зависимостей.

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Добавляет метаданные зависимостей.

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Исходный код:
HttpDiagnosticsServiceCollectionExtensions.cs
Исходный код:
HttpDiagnosticsServiceCollectionExtensions.cs
Исходный код:
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 экземпляр объекта.

downstreamDependencyMetadata
IDownstreamDependencyMetadata

Добавляемый объект DownstreamDependencyMetadata.

Возвращаемое значение

Значение services.

Применяется к

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Исходный код:
HttpDiagnosticsServiceCollectionExtensions.cs
Исходный код:
HttpDiagnosticsServiceCollectionExtensions.cs
Исходный код:
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 регистрируемого экземпляра.

Параметры

services
IServiceCollection

IServiceCollection экземпляр объекта.

Возвращаемое значение

Значение services.

Применяется к