HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata) |
Agrega metadatos de dependencia. |
AddDownstreamDependencyMetadata<T>(IServiceCollection) |
Agrega metadatos de dependencia. |
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)
Agrega metadatos de dependencia.
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 instancia de objeto.
- downstreamDependencyMetadata
- IDownstreamDependencyMetadata
Objeto DownstreamDependencyMetadata que se va a agregar.
Devoluciones
El valor de services
.
Se aplica a
AddDownstreamDependencyMetadata<T>(IServiceCollection)
Agrega metadatos de dependencia.
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 instancia que se va a registrar.
Parámetros
- services
- IServiceCollection
IServiceCollection instancia de objeto.
Devoluciones
El valor de services
.