static public WorkflowDefinition GetWorkflowDefinition(int workflowType) { using (BasicChannel channel = new BasicChannel()) { return(channel.GetWorkflowDefinition(workflowType)); } }