共用方式為


ObjectPoolServiceCollectionExtensions.ConfigurePools 方法

定義

設定 DI 集區。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ ConfigurePools(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigurePools (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member ConfigurePools : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function ConfigurePools (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

參數

services
IServiceCollection

要新增的目標 IServiceCollection

section
IConfigurationSection

要系結的組態區段。

傳回

services 的值。

適用於