LatencyRegistryServiceCollectionExtensions.RegisterCheckpointNames 方法

定义

为延迟上下文注册一组检查点名称。

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

参数

services
IServiceCollection

要向其添加名称的依赖项注入容器。

names
String[]

检查点名称集。

返回

services 的值。

例外

servicesnamesnull

适用于