コード例 #1
0
        private WorkflowInstanceManager StartWorkflow_todelete(Activity workflow)
        {
            WorkflowInstanceManager workflowManager = new WorkflowInstanceManager(workflow);

            workflowManager.instanceStore = InstanceStore;
            return(workflowManager);
        }
コード例 #2
0
        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);
        }