Sdílet prostřednictvím


LatencyRegistryServiceCollectionExtensions.RegisterMeasureNames Metoda

Definice

Zaregistruje sadu názvů měr pro kontext latence.

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

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do které se mají přidat názvy.

names
String[]

Sada názvů měr.

Návraty

Hodnota .services

Výjimky

services nebo names je null.

Platí pro