/// <summary> /// Wait for the task to complete /// </summary> public void Wait() { Action action = () => this.task.GetAwaiter().GetResult(); JiraModuleException.Try(Description, action); }
/// <summary> /// Wiats for the task to finish and then return the result /// based on the trandform provided /// </summary> public dynamic GetResult() { Func <dynamic> action = () => GetTask().GetAwaiter().GetResult(); var taskResult = JiraModuleException.Try(Description, action); var transformed = this.resultTransform(taskResult); return(transformed); }