Creates a new Instance using specified parameters and worker process.

Namespace:  WebSupergoo.TaskGarden

Syntax

C#
public 
static 

Instance<TInterface> 
Create<TTarget>(
        

InstanceStartInfo 
info,
        
Template 
template
)
where TTarget : 
new()
Visual Basic
Public 
Shared 
Function 
Create(
Of TTarget 
As 
New) ( _
        
info 
As 

InstanceStartInfo, _
        
template 
As 
Template _
) 
As 
Instance(
Of TInterface)

Parameters

info
Type: WebSupergoo.TaskGarden . . :: . . InstanceStartInfo
Options used to start the worker process.
template
Type: WebSupergoo.TaskGarden . . :: . . Template
Template used to host this Instance. Only valid if info.RunIn is NewProcess.

Type Parameters

TTarget
Target class implementing TInterface.

Return Value

A new Instance object.

See Also