Freigeben über


HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Methode

Definition

Überlädt

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Fügt Abhängigkeitsmetadaten hinzu.

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Fügt Abhängigkeitsmetadaten hinzu.

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs
Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs
Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs

Fügt Abhängigkeitsmetadaten hinzu.

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

Parameter

services
IServiceCollection

IServiceCollectionobjekt instance.

downstreamDependencyMetadata
IDownstreamDependencyMetadata

Hinzuzufügende DownstreamDependencyMetadata-Objekt.

Gibt zurück

Der Wert von services.

Gilt für:

AddDownstreamDependencyMetadata<T>(IServiceCollection)

Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs
Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs
Quelle:
HttpDiagnosticsServiceCollectionExtensions.cs

Fügt Abhängigkeitsmetadaten hinzu.

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

Typparameter

T

IDownstreamDependencyMetadatainstance registriert werden.

Parameter

services
IServiceCollection

IServiceCollectionobjekt instance.

Gibt zurück

Der Wert von services.

Gilt für: