HttpDiagnosticsServiceCollectionExtensions.AddDownstreamDependencyMetadata Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata) |
Menambahkan metadata dependensi. |
AddDownstreamDependencyMetadata<T>(IServiceCollection) |
Menambahkan metadata dependensi. |
AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)
Menambahkan metadata dependensi.
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
IServiceCollection instans objek.
- downstreamDependencyMetadata
- IDownstreamDependencyMetadata
Objek DownstreamDependencyMetadata untuk ditambahkan.
Mengembalikan
Nilai dari services
.
Berlaku untuk
AddDownstreamDependencyMetadata<T>(IServiceCollection)
Menambahkan metadata dependensi.
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
Jenis parameter
- T
IDownstreamDependencyMetadata instans yang akan didaftarkan.
Parameter
- services
- IServiceCollection
IServiceCollection instans objek.
Mengembalikan
Nilai dari services
.