Udostępnij za pośrednictwem


LatencyRegistryServiceCollectionExtensions.RegisterCheckpointNames Metoda

Definicja

Rejestruje zestaw nazw punktów kontrolnych dla kontekstu opóźnienia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RegisterCheckpointNames(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, ... cli::array <System::String ^> ^ names);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RegisterCheckpointNames (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, params string[] names);
static member RegisterCheckpointNames : Microsoft.Extensions.DependencyInjection.IServiceCollection * string[] -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RegisterCheckpointNames (services As IServiceCollection, ParamArray names As String()) As IServiceCollection

Parametry

services
IServiceCollection

Kontener wstrzykiwania zależności w celu dodania nazw.

names
String[]

Zestaw nazw punktów kontrolnych.

Zwraca

Wartość .services

Wyjątki

services lub names ma wartość null.

Dotyczy