Udostępnij za pośrednictwem


ObjectPoolServiceCollectionExtensions.ConfigurePool<TService> Metoda

Definicja

Rejestruje akcję używaną do konfigurowania DependencyInjectionPoolOptions typu puli.

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

Parametry typu

TService

Typ obiektów do puli.

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

configure
Action<DependencyInjectionPoolOptions>

Akcja użyta do skonfigurowania opcji.

Zwraca

Wartość .services

Dotyczy