ObjectPoolServiceCollectionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for adding ObjectPool<T> to DI container.
public ref class ObjectPoolServiceCollectionExtensions abstract sealed
public static class ObjectPoolServiceCollectionExtensions
type ObjectPoolServiceCollectionExtensions = class
Public Module ObjectPoolServiceCollectionExtensions
- Inheritance
-
ObjectPoolServiceCollectionExtensions
Methods
AddPooled<TService,TImplementation>(IServiceCollection, Action<DependencyInjectionPoolOptions>) |
Adds an ObjectPool<T> and lets DI return scoped instances of |
AddPooled<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>) |
Adds an ObjectPool<T> and lets DI return scoped instances of |
ConfigurePool<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>) |
Registers an action used to configure the DependencyInjectionPoolOptions of a typed pool. |
ConfigurePools(IServiceCollection, IConfigurationSection) |
Configures DI pools. |
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.