private WorkflowInstanceManager StartWorkflow_todelete(Activity workflow) { WorkflowInstanceManager workflowManager = new WorkflowInstanceManager(workflow); workflowManager.instanceStore = InstanceStore; return(workflowManager); }
public TResponse StartWorkflow <TRequest, TResponse>(Activity workflow, TRequest request, string OperationName) { TResponse response = default(TResponse); WorkflowInstanceManager workflowManager = new WorkflowInstanceManager(workflow); workflowManager.instanceStore = InstanceStore; try { response = workflowManager.StartWorkflow <TRequest, TResponse>(request, OperationName); } catch (Exception exc) { throw exc; } return(response); }