HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata) |
添加依赖项元数据。 |
AddDownstreamDependencyMetadata<T>(IServiceCollection) |
添加依赖项元数据。 |
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)
添加依赖项元数据。
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)
添加依赖项元数据。
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
的值。