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)); }
internal override void Raise(PostExecutionEvents postExecutionEvents) { postExecutionEvents.Completed(_result); }
internal override void Raise(PostExecutionEvents postExecutionEvents) { postExecutionEvents.Restarted(); }
internal override void Raise(PostExecutionEvents postExecutionEvents) { postExecutionEvents.Cancelled(_details); }
internal override void Raise(PostExecutionEvents postExecutionEvents) { postExecutionEvents.Failed(_reason, _details); }