ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring 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
AddResourceMonitoring(IServiceCollection) |
Mengonfigurasi dan menambahkan IResourceMonitor implementasi ke koleksi layanan. |
AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>) |
Mengonfigurasi dan menambahkan IResourceMonitor implementasi ke koleksi layanan. |
AddResourceMonitoring(IServiceCollection)
Mengonfigurasi dan menambahkan IResourceMonitor implementasi ke koleksi layanan.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddResourceMonitoring(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResourceMonitoring (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddResourceMonitoring : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResourceMonitoring (services As IServiceCollection) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer injeksi dependensi untuk menambahkan monitor.
Mengembalikan
Nilai dari services
.
Pengecualian
services
adalah null
.
Berlaku untuk
AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)
Mengonfigurasi dan menambahkan IResourceMonitor implementasi ke koleksi layanan.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddResourceMonitoring(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResourceMonitoring (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder> configure);
static member AddResourceMonitoring : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResourceMonitoring (services As IServiceCollection, configure As Action(Of IResourceMonitorBuilder)) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer injeksi dependensi untuk menambahkan monitor.
- configure
- Action<IResourceMonitorBuilder>
Delegasikan untuk mengonfigurasi IResourceMonitorBuilder.
Mengembalikan
Nilai dari services
.
Pengecualian
Baik services
atau configure
adalah null
.