Dela via


LatencyRegistryServiceCollectionExtensions.RegisterCheckpointNames Method

Definition

Registers a set of checkpoint names for a latency context.

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

Parameters

services
IServiceCollection

The dependency injection container to add the names to.

names
String[]

Set of checkpoint names.

Returns

The value of services.

Exceptions

services or names is null.

Applies to