ObjectPoolServiceCollectionExtensions クラス

定義

DI コンテナーに ObjectPool<T> を追加するための拡張メソッド。

public ref class ObjectPoolServiceCollectionExtensions abstract sealed
public static class ObjectPoolServiceCollectionExtensions
type ObjectPoolServiceCollectionExtensions = class
Public Module ObjectPoolServiceCollectionExtensions
継承
ObjectPoolServiceCollectionExtensions

メソッド

名前 説明
AddPooled<TService,TImplementation>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

ObjectPool<T>を追加し、DI がTServiceのスコープ付きインスタンスを返すようにします。

AddPooled<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

ObjectPool<T>を追加し、DI がTServiceのスコープ付きインスタンスを返すようにします。

ConfigurePool<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

型指定されたプールの DependencyInjectionPoolOptions の構成に使用するアクションを登録します。

ConfigurePools(IServiceCollection, IConfigurationSection)

DI プールを構成します。

適用対象