Octokit.IssueCommentsClient.GetAllForIssue C# (CSharp) Метод

GetAllForIssue() публичный Метод

Gets Issue Comments for a specified Issue.
http://developer.github.com/v3/issues/comments/#list-comments-on-an-issue
public GetAllForIssue ( long repositoryId, int number ) : Task>
repositoryId long The Id of the repository
number int The issue number
Результат Task>
        public Task<IReadOnlyList<IssueComment>> GetAllForIssue(long repositoryId, int number)
        {
            return GetAllForIssue(repositoryId, number, ApiOptions.None);
        }

Same methods

IssueCommentsClient::GetAllForIssue ( long repositoryId, int number, Octokit.ApiOptions options ) : Task>
IssueCommentsClient::GetAllForIssue ( string owner, string name, int number ) : Task>
IssueCommentsClient::GetAllForIssue ( string owner, string name, int number, Octokit.ApiOptions options ) : Task>

Usage Example

        public async Task EnsuresArgumentsNotNull()
        {
            var connection = Substitute.For<IApiConnection>();
            var client = new IssueCommentsClient(connection);

            await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllForIssue(null, "name", 1));
            await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllForIssue("", "name", 1));
            await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllForIssue("owner", null, 1));
            await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllForIssue("owner", "", 1));
        }
All Usage Examples Of Octokit.IssueCommentsClient::GetAllForIssue