Exemple #1
0
        /// <summary>
        /// Wait for the task to complete
        /// </summary>
        public void Wait()
        {
            Action action = ()
                            => this.task.GetAwaiter().GetResult();

            JiraModuleException.Try(Description, action);
        }
Exemple #2
0
        /// <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);
        }