{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/Azure/azure-amqp/pulls/18","id":67583239,"html_url":"https://github.com/Azure/azure-amqp/pull/18","diff_url":"https://github.com/Azure/azure-amqp/pull/18.diff","patch_url":"https://github.com/Azure/azure-amqp/pull/18.patch","issue_url":"https://api.github.com/repos/Azure/azure-amqp/issues/18","number":18,"state":"closed","locked":false,"title":"Add GetBodySize method to AmqpMessage","user":{"login":"myagley","id":833747,"avatar_url":"https://avatars.githubusercontent.com/u/833747?v=3","gravatar_id":"","url":"https://api.github.com/users/myagley","html_url":"https://github.com/myagley","followers_url":"https://api.github.com/users/myagley/followers","following_url":"https://api.github.com/users/myagley/following{/other_user}","gists_url":"https://api.github.com/users/myagley/gists{/gist_id}","starred_url":"https://api.github.com/users/myagley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myagley/subscriptions","organizations_url":"https://api.github.com/users/myagley/orgs","repos_url":"https://api.github.com/users/myagley/repos","events_url":"https://api.github.com/users/myagley/events{/privacy}","received_events_url":"https://api.github.com/users/myagley/received_events","type":"User","site_admin":false},"body":"Adds ability to get the body size, regardless of how the message is instantiated. Azure IoT instantiates AmqpMessages using `Stream`s and `Data`. There is no convenient way to determine the size in bytes of the body of the message without reading all of the possible body types (Data, Value, Sequence, Stream) and catching the appropriate exceptions.\r\n\r\nThis PR adds a `GetBodySize` method that returns the body size for each method type.","created_at":"2016-04-22T22:47:31Z","updated_at":"2016-04-26T21:15:19Z","closed_at":"2016-04-26T21:15:19Z","merged_at":null,"merge_commit_sha":"b1cd18e833cde187441d5ebe9194878db67285e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-amqp/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-amqp/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-amqp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-amqp/issues/18/comments","statuses_url":"https://api.github.com/repos/Azure/azure-amqp/statuses/83ed25977ba7fb554a98487d4b7e3cd64c13b759","head":{"label":"myagley:miyagley-bodysize","ref":"miyagley-bodysize","sha":"83ed25977ba7fb554a98487d4b7e3cd64c13b759","user":{"login":"myagley","id":833747,"avatar_url":"https://avatars.githubusercontent.com/u/833747?v=3","gravatar_id":"","url":"https://api.github.com/users/myagley","html_url":"https://github.com/myagley","followers_url":"https://api.github.com/users/myagley/followers","following_url":"https://api.github.com/users/myagley/following{/other_user}","gists_url":"https://api.github.com/users/myagley/gists{/gist_id}","starred_url":"https://api.github.com/users/myagley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myagley/subscriptions","organizations_url":"https://api.github.com/users/myagley/orgs","repos_url":"https://api.github.com/users/myagley/repos","events_url":"https://api.github.com/users/myagley/events{/privacy}","received_events_url":"https://api.github.com/users/myagley/received_events","type":"User","site_admin":false},"repo":{"id":56632922,"name":"azure-amqp","full_name":"myagley/azure-amqp","owner":{"login":"myagley","id":833747,"avatar_url":"https://avatars.githubusercontent.com/u/833747?v=3","gravatar_id":"","url":"https://api.github.com/users/myagley","html_url":"https://github.com/myagley","followers_url":"https://api.github.com/users/myagley/followers","following_url":"https://api.github.com/users/myagley/following{/other_user}","gists_url":"https://api.github.com/users/myagley/gists{/gist_id}","starred_url":"https://api.github.com/users/myagley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myagley/subscriptions","organizations_url":"https://api.github.com/users/myagley/orgs","repos_url":"https://api.github.com/users/myagley/repos","events_url":"https://api.github.com/users/myagley/events{/privacy}","received_events_url":"https://api.github.com/users/myagley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myagley/azure-amqp","description":"AMQP C# library","fork":true,"url":"https://api.github.com/repos/myagley/azure-amqp","forks_url":"https://api.github.com/repos/myagley/azure-amqp/forks","keys_url":"https://api.github.com/repos/myagley/azure-amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myagley/azure-amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myagley/azure-amqp/teams","hooks_url":"https://api.github.com/repos/myagley/azure-amqp/hooks","issue_events_url":"https://api.github.com/repos/myagley/azure-amqp/issues/events{/number}","events_url":"https://api.github.com/repos/myagley/azure-amqp/events","assignees_url":"https://api.github.com/repos/myagley/azure-amqp/assignees{/user}","branches_url":"https://api.github.com/repos/myagley/azure-amqp/branches{/branch}","tags_url":"https://api.github.com/repos/myagley/azure-amqp/tags","blobs_url":"https://api.github.com/repos/myagley/azure-amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myagley/azure-amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myagley/azure-amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/myagley/azure-amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myagley/azure-amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/myagley/azure-amqp/languages","stargazers_url":"https://api.github.com/repos/myagley/azure-amqp/stargazers","contributors_url":"https://api.github.com/repos/myagley/azure-amqp/contributors","subscribers_url":"https://api.github.com/repos/myagley/azure-amqp/subscribers","subscription_url":"https://api.github.com/repos/myagley/azure-amqp/subscription","commits_url":"https://api.github.com/repos/myagley/azure-amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/myagley/azure-amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/myagley/azure-amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/myagley/azure-amqp/issues/comments{/number}","contents_url":"https://api.github.com/repos/myagley/azure-amqp/contents/{+path}","compare_url":"https://api.github.com/repos/myagley/azure-amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myagley/azure-amqp/merges","archive_url":"https://api.github.com/repos/myagley/azure-amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myagley/azure-amqp/downloads","issues_url":"https://api.github.com/repos/myagley/azure-amqp/issues{/number}","pulls_url":"https://api.github.com/repos/myagley/azure-amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/myagley/azure-amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/myagley/azure-amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myagley/azure-amqp/labels{/name}","releases_url":"https://api.github.com/repos/myagley/azure-amqp/releases{/id}","deployments_url":"https://api.github.com/repos/myagley/azure-amqp/deployments","created_at":"2016-04-19T21:20:23Z","updated_at":"2016-04-19T21:20:24Z","pushed_at":"2016-04-26T21:11:40Z","git_url":"git://github.com/myagley/azure-amqp.git","ssh_url":"git@github.com:myagley/azure-amqp.git","clone_url":"https://github.com/myagley/azure-amqp.git","svn_url":"https://github.com/myagley/azure-amqp","homepage":null,"size":458,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"945cc386cf2f27ec0c613a9398a8e84f38345dd9","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":44136406,"name":"azure-amqp","full_name":"Azure/azure-amqp","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-amqp","description":"AMQP C# library","fork":false,"url":"https://api.github.com/repos/Azure/azure-amqp","forks_url":"https://api.github.com/repos/Azure/azure-amqp/forks","keys_url":"https://api.github.com/repos/Azure/azure-amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-amqp/teams","hooks_url":"https://api.github.com/repos/Azure/azure-amqp/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-amqp/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-amqp/events","assignees_url":"https://api.github.com/repos/Azure/azure-amqp/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-amqp/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-amqp/tags","blobs_url":"https://api.github.com/repos/Azure/azure-amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-amqp/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-amqp/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-amqp/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-amqp/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-amqp/subscription","commits_url":"https://api.github.com/repos/Azure/azure-amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-amqp/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-amqp/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-amqp/merges","archive_url":"https://api.github.com/repos/Azure/azure-amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-amqp/downloads","issues_url":"https://api.github.com/repos/Azure/azure-amqp/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-amqp/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-amqp/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-amqp/deployments","created_at":"2015-10-12T21:56:42Z","updated_at":"2016-04-12T21:10:22Z","pushed_at":"2016-04-26T21:15:13Z","git_url":"git://github.com/Azure/azure-amqp.git","ssh_url":"git@github.com:Azure/azure-amqp.git","clone_url":"https://github.com/Azure/azure-amqp.git","svn_url":"https://github.com/Azure/azure-amqp","homepage":null,"size":18514,"stargazers_count":9,"watchers_count":9,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-amqp/pulls/18"},"html":{"href":"https://github.com/Azure/azure-amqp/pull/18"},"issue":{"href":"https://api.github.com/repos/Azure/azure-amqp/issues/18"},"comments":{"href":"https://api.github.com/repos/Azure/azure-amqp/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-amqp/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-amqp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-amqp/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-amqp/statuses/83ed25977ba7fb554a98487d4b7e3cd64c13b759"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":111,"deletions":8,"changed_files":3}}