Bagikan melalui


ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring Metode

Definisi

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)

Sumber:
ResourceMonitoringServiceCollectionExtensions.cs

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

servicesadalah null.

Berlaku untuk

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

Sumber:
ResourceMonitoringServiceCollectionExtensions.cs

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.

Berlaku untuk