DefaultObjectPoolProvider.Create<T> Method
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.
Creates an ObjectPool with the given IPooledObjectPolicy<T>.
public:
generic <typename T>
where T : class override Microsoft::Extensions::ObjectPool::ObjectPool<T> ^ Create(Microsoft::Extensions::ObjectPool::IPooledObjectPolicy<T> ^ policy);
public override Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> policy) where T : class;
override this.Create : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<'T (requires 'T : null)> -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null)> (requires 'T : null)
Public Overrides Function Create(Of T As Class) (policy As IPooledObjectPolicy(Of T)) As ObjectPool(Of T)
Type Parameters
- T
The type to create a pool for.
Parameters
- policy
- IPooledObjectPolicy<T>
Returns
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.