Esempio n. 1
0
        private void RaisePostExecutionEvents(IEnumerable <WorkflowDecision> workflowDecisions, Workflow workflow)
        {
            var postExecutionEvents      = new PostExecutionEvents(workflow, _decisionTask.WorkflowExecution.WorkflowId, _decisionTask.WorkflowExecution.RunId);
            var workflowClosingDecisions = workflowDecisions.OfType <WorkflowClosingDecision>().ToList();

            workflowClosingDecisions.ForEach(d => d.Raise(postExecutionEvents));
        }
Esempio n. 2
0
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Completed(_result);
 }
Esempio n. 3
0
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Restarted();
 }
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Cancelled(_details);
 }
Esempio n. 5
0
 internal override void Raise(PostExecutionEvents postExecutionEvents)
 {
     postExecutionEvents.Failed(_reason, _details);
 }