HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata) |
Aggiunge metadati di dipendenza. |
AddDownstreamDependencyMetadata<T>(IServiceCollection) |
Aggiunge metadati di dipendenza. |
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)
Aggiunge metadati di dipendenza.
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
Parametri
- services
- IServiceCollection
IServiceCollection istanza dell'oggetto.
- downstreamDependencyMetadata
- IDownstreamDependencyMetadata
Oggetto DownstreamDependencyMetadata da aggiungere.
Restituisce
Valore di services
.
Si applica a
AddDownstreamDependencyMetadata<T>(IServiceCollection)
Aggiunge metadati di dipendenza.
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
Parametri di tipo
- T
IDownstreamDependencyMetadata istanza da registrare.
Parametri
- services
- IServiceCollection
IServiceCollection istanza dell'oggetto.
Restituisce
Valore di services
.