Octokit.IssueCommentsClient.GetAllForRepository C# (CSharp) Méthode

GetAllForRepository() public méthode

Gets Issue Comments for a repository.
http://developer.github.com/v3/issues/comments/#list-comments-in-a-repository
public GetAllForRepository ( long repositoryId ) : Task>
repositoryId long The Id of the repository
Résultat Task>
        public Task<IReadOnlyList<IssueComment>> GetAllForRepository(long repositoryId)
        {
            return GetAllForRepository(repositoryId, new IssueCommentRequest(), ApiOptions.None);
        }

Same methods

IssueCommentsClient::GetAllForRepository ( long repositoryId, Octokit.ApiOptions options ) : Task>
IssueCommentsClient::GetAllForRepository ( long repositoryId, IssueCommentRequest request ) : Task>
IssueCommentsClient::GetAllForRepository ( long repositoryId, IssueCommentRequest request, Octokit.ApiOptions options ) : Task>
IssueCommentsClient::GetAllForRepository ( string owner, string name ) : Task>
IssueCommentsClient::GetAllForRepository ( string owner, string name, Octokit.ApiOptions options ) : Task>
IssueCommentsClient::GetAllForRepository ( string owner, string name, IssueCommentRequest request ) : Task>
IssueCommentsClient::GetAllForRepository ( string owner, string name, IssueCommentRequest request, 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.GetAllForRepository(null, "name"));
            await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllForRepository("", "name"));
            await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllForRepository("owner", null));
            await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllForRepository("owner", ""));
        }
All Usage Examples Of Octokit.IssueCommentsClient::GetAllForRepository