ObjectPoolServiceCollectionExtensions.ConfigurePool<TService> Método

Definição

Registra uma ação usada para configurar o DependencyInjectionPoolOptions de um pool tipado.

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

Parâmetros de tipo

TService

O tipo de objetos a serem agrupados.

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar os serviços.

configure
Action<DependencyInjectionPoolOptions>

A ação usada para configurar as opções.

Retornos

O valor de services.

Aplica-se a