Creates a pool with the specified options for
each Instance, the worker process and the number of Instance
objects in the pool.
Namespace:
WebSupergoo.TaskGarden
Syntax
| C# |
|---|
public static Pool<TInterface> Create<TTarget>( InstanceStartInfo info, Template template, int poolSize ) where TTarget : class, new() |
| Visual Basic |
|---|
Public Shared Function Create( Of TTarget As { Class, New}) ( _ info As InstanceStartInfo, _ template As Template, _ poolSize As Integer _ ) As Pool( Of TInterface) |
Parameters
- info
- Type:
WebSupergoo.TaskGarden
.
.
::
.
.
InstanceStartInfo
Options to start worker processes.
- template
- Type:
WebSupergoo.TaskGarden
.
.
::
.
.
Template
A template image where classes will be instantiated.
- 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.