Creates a pool with the specified number of
Instance objects.
Namespace:
WebSupergoo.TaskGarden
Syntax
| C# |
public
static
Pool<TInterface>
Create<TTarget>(
int
poolSize
)
where TTarget :
class,
new()
|
| Visual Basic |
Public
Shared
Function
Create(
Of TTarget
As {
Class,
New}) ( _
poolSize
As
Integer _
)
As
Pool(
Of TInterface)
|
Parameters
-
poolSize
- Type:
System
.
.
::
.
.
Int32
The initial size of the pool. This is the maximum number of
Instance that will be created by the pool.
Type Parameters
-
TTarget
- Target class to be hosted in a worker process, implementing
TInterface.
Return Value
A pool configured to create
Instance of target class TTarget.
See Also