Bagikan melalui


NullLatencyContextServiceCollectionExtensions.AddNullLatencyContext Metode

Definisi

Menambahkan konteks latensi tanpa op ke kontainer injeksi dependensi.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddNullLatencyContext(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddNullLatencyContext (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddNullLatencyContext : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddNullLatencyContext (services As IServiceCollection) As IServiceCollection

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan konteks.

Mengembalikan

Nilai dari services.

Pengecualian

servicesadalah null.

Berlaku untuk