共用方式為


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

適用於