/// <summary> /// Loads user defined TaskActivity objects in the TaskHubWorker /// </summary> /// <param name="taskActivityObjects">Objects of with TaskActivity base type</param> /// <returns></returns> public TaskHubWorker AddTaskActivities(params TaskActivity[] taskActivityObjects) { foreach (TaskActivity instance in taskActivityObjects) { ObjectCreator <TaskActivity> creator = new DefaultObjectCreator <TaskActivity>(instance); activityManager.Add(creator); } return(this); }
/// <summary> /// Loads user defined TaskOrchestration classes in the TaskHubWorker /// </summary> /// <param name="taskOrchestrationTypes">Types deriving from TaskOrchestration class</param> /// <returns></returns> public TaskHubWorker AddTaskOrchestrations(params Type[] taskOrchestrationTypes) { foreach (Type type in taskOrchestrationTypes) { ObjectCreator <TaskOrchestration> creator = new DefaultObjectCreator <TaskOrchestration>(type); orchestrationManager.Add(creator); } return(this); }