//TODO : Get rid of this constructor once the dependent constructor is deleted. private WorkflowHistoryEvents(IEnumerable <HistoryEvent> allHistoryEvents, long previousStartedEventId, long newStartedEventId, string workflowRunId) { var decision = new DecisionTask() { PreviousStartedEventId = previousStartedEventId, StartedEventId = newStartedEventId, WorkflowExecution = new WorkflowExecution() { RunId = workflowRunId } }; decision.Events = allHistoryEvents.ToList(); decision.TaskToken = "dummy"; _workflowTask = WorkflowTask.Create(decision); }
/// <summary> /// Append events of <para>other</para> WorkflowTask. /// </summary> /// <param name="other"></param> public void Append(WorkflowTask other) { Ensure.NotNull(other, nameof(other)); _decisionTask.Events.AddRange(other._decisionTask.Events); }
public WorkflowHistoryEvents(WorkflowTask workflowTask) { _workflowTask = workflowTask; }