NullLatencyContextServiceCollectionExtensions.AddNullLatencyContext 方法

定义

将无操作延迟上下文添加到依赖项注入容器。

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

参数

services
IServiceCollection

要向其添加上下文的依赖项注入容器。

返回

services 的值。

例外

servicesnull

适用于