Бөлісу құралы:


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.

Применяется к