Condividi tramite


ObjectPoolServiceCollectionExtensions.ConfigurePool<TService> Metodo

Definizione

Registra un'azione usata per configurare l'oggetto DependencyInjectionPoolOptions di un pool tipizzato.

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

Parametri di tipo

TService

Tipo di oggetti da pool.

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

configure
Action<DependencyInjectionPoolOptions>

Azione usata per configurare le opzioni.

Restituisce

Valore di services.

Si applica a