다음을 통해 공유


ObjectPoolServiceCollectionExtensions.ConfigurePool<TService> 메서드

정의

형식화된 풀의 를 구성하는 DependencyInjectionPoolOptions 데 사용되는 작업을 등록합니다.

public:
generic <typename TService>
 where TService : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ ConfigurePool(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::ObjectPool::DependencyInjectionPoolOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigurePool<TService> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.ObjectPool.DependencyInjectionPoolOptions> configure) where TService : class;
static member ConfigurePool : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.ObjectPool.DependencyInjectionPoolOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function ConfigurePool(Of TService As Class) (services As IServiceCollection, configure As Action(Of DependencyInjectionPoolOptions)) As IServiceCollection

형식 매개 변수

TService

풀에 대한 개체의 형식입니다.

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

configure
Action<DependencyInjectionPoolOptions>

옵션을 구성하는 데 사용되는 동작입니다.

반환

services의 값

적용 대상