/// <summary>
 /// Wraps an instance so that it can be passed without the TInstance dependency
 /// </summary>
 /// <param name="workflow">The workflow</param>
 /// <param name="instance">The instance to wrap</param>
 /// <returns></returns>
 public static WorkflowInstance <TWorkflow> GetInstance <TWorkflow, TInstance>(
     this StateMachineWorkflow <TWorkflow, TInstance> workflow, TInstance instance)
     where TWorkflow : class
     where TInstance : class
 {
     return(new WorkflowInstance <TWorkflow, TInstance>(workflow, instance));
 }
Exemple #2
0
 protected virtual bool Visit <TWorkflow, TInstance>(StateMachineWorkflow <TWorkflow, TInstance> workflow)
     where TWorkflow : class
     where TInstance : class
 {
     return(true);
 }