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

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

Gets a single Issue Comment by id.
http://developer.github.com/v3/issues/comments/#get-a-single-comment
public Get ( long repositoryId, int id ) : Task
repositoryId long The Id of the repository
id int The issue comment id
Результат Task
        public Task<IssueComment> Get(long repositoryId, int id)
        {
            return ApiConnection.Get<IssueComment>(ApiUrls.IssueComment(repositoryId, id), null, AcceptHeaders.ReactionsPreview);
        }

Same methods

IssueCommentsClient::Get ( string owner, string name, int id ) : Task

Usage Example

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

            await AssertEx.Throws<ArgumentNullException>(async () => await client.Get(null, "name", 1));
            await AssertEx.Throws<ArgumentException>(async () => await client.Get("", "name", 1));
            await AssertEx.Throws<ArgumentNullException>(async () => await client.Get("owner", null, 1));
            await AssertEx.Throws<ArgumentException>(async () => await client.Get("owner", "", 1));
        }
All Usage Examples Of Octokit.IssueCommentsClient::Get