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