/// <summary> /// This method is what actually does the work of the task. /// </summary> string IActivity.TaskProcessor(string input) { if (Options == null) { throw new Exception("Options is undefined"); } if (Options.ActivityAction == null) { throw new Exception("ActivityAction is undefined"); } return(Utils.SerializeToJSON(Options.ActivityAction(Utils.DeserializeFromJSON <TInput>(input)))); }