예제 #1
0
 /// <summary>
 /// Gets an issue's comments.
 /// </summary>
 /// <param name="jira">Instance of <c>SimpleJira.Interface.IJira</c>.</param>
 /// <param name="issueReference">Reference to an existing issue. Should contains issue's key or issue's id.</param>
 /// <param name="request">Request that contains information about a required window.</param>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 /// <returns>
 ///     Response that contains comments, comments' count, additional information from request.
 /// </returns>
 public static Task <JiraCommentsResponse> GetCommentsAsync(this IJira jira, JiraIssueReference issueReference,
                                                            JiraCommentsRequest request)
 {
     return(jira.GetCommentsAsync(issueReference, request, CancellationToken.None));
 }
예제 #2
0
 /// <summary>
 /// Gets an issue's comments.
 /// </summary>
 /// <param name="jira">Instance of <c>SimpleJira.Interface.IJira</c>.</param>
 /// <param name="issueReference">Reference to an existing issue. Should contains issue's key or issue's id.</param>
 /// <param name="request">Request that contains information about a required window.</param>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 /// <returns>
 ///     Response that contains comments, comments' count, additional information from request.
 /// </returns>
 public static JiraCommentsResponse GetComments(this IJira jira, JiraIssueReference issueReference,
                                                JiraCommentsRequest request)
 {
     return(jira.GetCommentsAsync(issueReference, request, CancellationToken.None).GetAwaiter().GetResult());
 }