/// <summary> /// Creates the running workflow results. /// </summary> /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowEventArgs"/> instance containing the event data.</param> /// <returns></returns> public static WorkflowResults CreateRunningWorkflowResults(WorkflowEventArgs args) { WorkflowResults results = new WorkflowResults(args); results._status = WorkflowStatus.Running; return(results); }
/// <summary> /// Creates the aborted workflow results. /// </summary> /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowEventArgs"/> instance containing the event data.</param> /// <returns></returns> public static WorkflowResults CreateAbortedWorkflowResults(WorkflowEventArgs args) { WorkflowResults results = new WorkflowResults(args); results._status = WorkflowStatus.Aborted; return(results); }
/// <summary> /// Creates the terminated workflow results. /// </summary> /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowTerminatedEventArgs"/> instance containing the event data.</param> /// <returns></returns> public static WorkflowResults CreateTerminatedWorkflowResults (WorkflowTerminatedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results._status = WorkflowStatus.Terminated; return(results); }
/// <summary> /// Creates the completed workflow results. /// </summary> /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowCompletedEventArgs"/> instance containing the event data.</param> /// <returns></returns> public static WorkflowResults CreateCompletedWorkflowResults (WorkflowCompletedEventArgs args) { WorkflowResults results = new WorkflowResults(args); results._status = WorkflowStatus.Completed; return(results); }