{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/comments/235943021","pull_request_review_id":177929496,"id":235943021,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTk0MzAyMQ==","diff_hunk":"@@ -15,7 +15,8 @@ internal class SwarmOperations : ISwarmOperations\n         {\r\n             if (statusCode < HttpStatusCode.OK || statusCode >= HttpStatusCode.BadRequest)\r\n             {\r\n-                throw new DockerApiException(statusCode, responseBody);\r\n+                var deserializedBody = new JsonSerializer().DeserializeObject<JSONError>(responseBody);\r","path":"src/Docker.DotNet/Endpoints/SwarmOperations.cs","position":9,"original_position":5,"commit_id":"626ff9a475802989f0faa3c404170b444b459047","original_commit_id":"aa3fb081d6841cf3537f923844ecf4d1f970bca4","user":{"login":"dud380","id":7600636,"node_id":"MDQ6VXNlcjc2MDA2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/7600636?v=4","gravatar_id":"","url":"https://api.github.com/users/dud380","html_url":"https://github.com/dud380","followers_url":"https://api.github.com/users/dud380/followers","following_url":"https://api.github.com/users/dud380/following{/other_user}","gists_url":"https://api.github.com/users/dud380/gists{/gist_id}","starred_url":"https://api.github.com/users/dud380/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dud380/subscriptions","organizations_url":"https://api.github.com/users/dud380/orgs","repos_url":"https://api.github.com/users/dud380/repos","events_url":"https://api.github.com/users/dud380/events{/privacy}","received_events_url":"https://api.github.com/users/dud380/received_events","type":"User","site_admin":false},"body":"The problem is that you can't access \"this\", because it's an anonymous method. Try initialize swarmresponsehandler with a non-static method in Test, and you will get compilation error. ","created_at":"2018-11-23T13:38:24Z","updated_at":"2018-11-23T13:38:24Z","html_url":"https://github.com/Microsoft/Docker.DotNet/pull/358#discussion_r235943021","pull_request_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/comments/235943021"},"html":{"href":"https://github.com/Microsoft/Docker.DotNet/pull/358#discussion_r235943021"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358"}},"in_reply_to_id":235558370},"pull_request":{"url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358","id":231782138,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzgyMTM4","html_url":"https://github.com/Microsoft/Docker.DotNet/pull/358","diff_url":"https://github.com/Microsoft/Docker.DotNet/pull/358.diff","patch_url":"https://github.com/Microsoft/Docker.DotNet/pull/358.patch","issue_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/358","number":358,"state":"open","locked":false,"title":"Services filter fixed. And service operations now throws dockerapiexc…","user":{"login":"dud380","id":7600636,"node_id":"MDQ6VXNlcjc2MDA2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/7600636?v=4","gravatar_id":"","url":"https://api.github.com/users/dud380","html_url":"https://github.com/dud380","followers_url":"https://api.github.com/users/dud380/followers","following_url":"https://api.github.com/users/dud380/following{/other_user}","gists_url":"https://api.github.com/users/dud380/gists{/gist_id}","starred_url":"https://api.github.com/users/dud380/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dud380/subscriptions","organizations_url":"https://api.github.com/users/dud380/orgs","repos_url":"https://api.github.com/users/dud380/repos","events_url":"https://api.github.com/users/dud380/events{/privacy}","received_events_url":"https://api.github.com/users/dud380/received_events","type":"User","site_admin":false},"body":"Swarm operations throw DockerApiException on error. \r\nService filter bug fixed\r\nTests updated\r\nTests added for service operations","created_at":"2018-11-18T11:17:37Z","updated_at":"2018-11-23T13:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6edac7152639e8b451aa07070008eab430f65c0f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358/commits","review_comments_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358/comments","review_comment_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/358/comments","statuses_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/statuses/626ff9a475802989f0faa3c404170b444b459047","head":{"label":"dud380:master","ref":"master","sha":"626ff9a475802989f0faa3c404170b444b459047","user":{"login":"dud380","id":7600636,"node_id":"MDQ6VXNlcjc2MDA2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/7600636?v=4","gravatar_id":"","url":"https://api.github.com/users/dud380","html_url":"https://github.com/dud380","followers_url":"https://api.github.com/users/dud380/followers","following_url":"https://api.github.com/users/dud380/following{/other_user}","gists_url":"https://api.github.com/users/dud380/gists{/gist_id}","starred_url":"https://api.github.com/users/dud380/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dud380/subscriptions","organizations_url":"https://api.github.com/users/dud380/orgs","repos_url":"https://api.github.com/users/dud380/repos","events_url":"https://api.github.com/users/dud380/events{/privacy}","received_events_url":"https://api.github.com/users/dud380/received_events","type":"User","site_admin":false},"repo":{"id":157998212,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc5OTgyMTI=","name":"Docker.DotNet","full_name":"dud380/Docker.DotNet","private":false,"owner":{"login":"dud380","id":7600636,"node_id":"MDQ6VXNlcjc2MDA2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/7600636?v=4","gravatar_id":"","url":"https://api.github.com/users/dud380","html_url":"https://github.com/dud380","followers_url":"https://api.github.com/users/dud380/followers","following_url":"https://api.github.com/users/dud380/following{/other_user}","gists_url":"https://api.github.com/users/dud380/gists{/gist_id}","starred_url":"https://api.github.com/users/dud380/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dud380/subscriptions","organizations_url":"https://api.github.com/users/dud380/orgs","repos_url":"https://api.github.com/users/dud380/repos","events_url":"https://api.github.com/users/dud380/events{/privacy}","received_events_url":"https://api.github.com/users/dud380/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dud380/Docker.DotNet","description":":whale: .NET (C#) Client Library for Docker API","fork":true,"url":"https://api.github.com/repos/dud380/Docker.DotNet","forks_url":"https://api.github.com/repos/dud380/Docker.DotNet/forks","keys_url":"https://api.github.com/repos/dud380/Docker.DotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dud380/Docker.DotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dud380/Docker.DotNet/teams","hooks_url":"https://api.github.com/repos/dud380/Docker.DotNet/hooks","issue_events_url":"https://api.github.com/repos/dud380/Docker.DotNet/issues/events{/number}","events_url":"https://api.github.com/repos/dud380/Docker.DotNet/events","assignees_url":"https://api.github.com/repos/dud380/Docker.DotNet/assignees{/user}","branches_url":"https://api.github.com/repos/dud380/Docker.DotNet/branches{/branch}","tags_url":"https://api.github.com/repos/dud380/Docker.DotNet/tags","blobs_url":"https://api.github.com/repos/dud380/Docker.DotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dud380/Docker.DotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dud380/Docker.DotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/dud380/Docker.DotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dud380/Docker.DotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/dud380/Docker.DotNet/languages","stargazers_url":"https://api.github.com/repos/dud380/Docker.DotNet/stargazers","contributors_url":"https://api.github.com/repos/dud380/Docker.DotNet/contributors","subscribers_url":"https://api.github.com/repos/dud380/Docker.DotNet/subscribers","subscription_url":"https://api.github.com/repos/dud380/Docker.DotNet/subscription","commits_url":"https://api.github.com/repos/dud380/Docker.DotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/dud380/Docker.DotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/dud380/Docker.DotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/dud380/Docker.DotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/dud380/Docker.DotNet/contents/{+path}","compare_url":"https://api.github.com/repos/dud380/Docker.DotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dud380/Docker.DotNet/merges","archive_url":"https://api.github.com/repos/dud380/Docker.DotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dud380/Docker.DotNet/downloads","issues_url":"https://api.github.com/repos/dud380/Docker.DotNet/issues{/number}","pulls_url":"https://api.github.com/repos/dud380/Docker.DotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/dud380/Docker.DotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/dud380/Docker.DotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dud380/Docker.DotNet/labels{/name}","releases_url":"https://api.github.com/repos/dud380/Docker.DotNet/releases{/id}","deployments_url":"https://api.github.com/repos/dud380/Docker.DotNet/deployments","created_at":"2018-11-17T15:34:02Z","updated_at":"2018-11-22T21:09:23Z","pushed_at":"2018-11-22T21:09:20Z","git_url":"git://github.com/dud380/Docker.DotNet.git","ssh_url":"git@github.com:dud380/Docker.DotNet.git","clone_url":"https://github.com/dud380/Docker.DotNet.git","svn_url":"https://github.com/dud380/Docker.DotNet","homepage":"https://www.nuget.org/packages/Docker.DotNet/","size":1444,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"b13f78e6d037e474d63e89e1fc25ddf1220c85a8","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":23337905,"node_id":"MDEwOlJlcG9zaXRvcnkyMzMzNzkwNQ==","name":"Docker.DotNet","full_name":"Microsoft/Docker.DotNet","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/Docker.DotNet","description":":whale: .NET (C#) Client Library for Docker API","fork":false,"url":"https://api.github.com/repos/Microsoft/Docker.DotNet","forks_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/forks","keys_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/teams","hooks_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/events","assignees_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/tags","blobs_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/languages","stargazers_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/subscription","commits_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/merges","archive_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/downloads","issues_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/Docker.DotNet/deployments","created_at":"2014-08-26T03:47:17Z","updated_at":"2018-11-21T23:32:09Z","pushed_at":"2018-11-22T21:09:22Z","git_url":"git://github.com/Microsoft/Docker.DotNet.git","ssh_url":"git@github.com:Microsoft/Docker.DotNet.git","clone_url":"https://github.com/Microsoft/Docker.DotNet.git","svn_url":"https://github.com/Microsoft/Docker.DotNet","homepage":"https://www.nuget.org/packages/Docker.DotNet/","size":1400,"stargazers_count":697,"watchers_count":697,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":169,"mirror_url":null,"archived":false,"open_issues_count":47,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":169,"open_issues":47,"watchers":697,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358"},"html":{"href":"https://github.com/Microsoft/Docker.DotNet/pull/358"},"issue":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/358"},"comments":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/Docker.DotNet/statuses/626ff9a475802989f0faa3c404170b444b459047"}},"author_association":"NONE"}}
{"actor":{"display_login":"dud380"}}