The Pool < (Of < ( <' TInterface > ) > ) > type exposes the following members.

Methods

  Name Description
Public method Static member Create < (Of < <' ( TTarget > ) > > ) (Int32)
Creates a pool with the specified number of Instance objects.
Public method Static member Create < (Of < <' ( TTarget > ) > > ) (InstanceStartInfo, Int32)
Creates a pool with the specified options for each Instance and the number of Instance objects.
Public method Static member Create < (Of < <' ( TTarget > ) > > ) (InstanceStartInfo, Template, Int32)
Creates a pool with the specified options for each Instance, the worker process and the number of Instance objects in the pool.
Public method Dispose
Dispose of all Instance objects created by the pool.

Properties

  Name Description
Public property AutoRetryCount
If any calls to the Target fails with an exception, the call will be automatically retried this number of times.
Public property IdleTimeLimit
Number of milliseconds after which idle Instances will be shut down. Null specifies that no Instances will be shut down for being idle.
Public property RecycleInterval
The interval number of milliseconds where Instances will be recycled. Null indicates that no regular recycling will occur.
Public property Sequential
Whether function calls to the same worker process needs to be serialized. Set this to true if TTarget refers to a class that is not reentrant.
Public property Target
Gets the proxy object that implements TInterface. Calls to this object will be executed on a pooled worker process and the return value will be passed back.
Public property Timeout
Timeout for operations in milliseconds. Null indicates no timeout value (call will wait for result indefinitely).

See Also