Click or drag to resize

PoolManagerBaseTManagerSettings, TPool, TPoolSettings, TSource, TInstanceInternalAcquire Method

[This is preliminary documentation and is subject to change.]

When implemented in a derived class, attempts to acquire an instance of a source according to AcquireMode.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
protected abstract bool InternalAcquire(
	TSource sourceObject,
	out TPool pool,
	out TInstance instance
)

Parameters

sourceObject
Type: TSource
The source to acquire an instance of.
pool
Type: TPool
When this method returns, contains the pool for the specified source, if one was created; otherwise, . This parameter is passed uninitialised.
instance
Type: TInstance
When this method returns, contains the instance of the specified source, if one was created; otherwise, . This parameter is passed uninitialised.

Return Value

Type: Boolean
if a pool exists for the specified source; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionIf no pool exists for the specified source, and AcquireMode is set to Error.
See Also