{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/4520","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/4520/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/4520/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/4520/events","html_url":"https://github.com/dotnet/corefx/pull/4520","id":117011078,"number":4520,"title":"Resuable WebSocketReceiveResult","user":{"login":"benaadams","id":1142958,"avatar_url":"https://avatars.githubusercontent.com/u/1142958?v=3","gravatar_id":"","url":"https://api.github.com/users/benaadams","html_url":"https://github.com/benaadams","followers_url":"https://api.github.com/users/benaadams/followers","following_url":"https://api.github.com/users/benaadams/following{/other_user}","gists_url":"https://api.github.com/users/benaadams/gists{/gist_id}","starred_url":"https://api.github.com/users/benaadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaadams/subscriptions","organizations_url":"https://api.github.com/users/benaadams/orgs","repos_url":"https://api.github.com/users/benaadams/repos","events_url":"https://api.github.com/users/benaadams/events{/privacy}","received_events_url":"https://api.github.com/users/benaadams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/enhancement","name":"enhancement","color":"207de5"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/needs%20more%20info","name":"needs more info","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/5","html_url":"https://github.com/dotnet/corefx/milestones/Future","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/5/labels","id":1328080,"number":5,"title":"Future","description":"Milestone tracking the issues triaged for post1.0.0-rtm","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":281,"closed_issues":19,"state":"open","created_at":"2015-09-29T00:25:45Z","updated_at":"2015-11-15T19:25:23Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-15T19:02:59Z","updated_at":"2015-11-15T19:28:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/4520","html_url":"https://github.com/dotnet/corefx/pull/4520","diff_url":"https://github.com/dotnet/corefx/pull/4520.diff","patch_url":"https://github.com/dotnet/corefx/pull/4520.patch"},"body":"Resuable WebSocketReceiveResult by derived type. \r\n\r\nAt the moment is `WebSocketReceiveResult` is a readonly POCO type that as a class must be garbage collected on every single socket message; probably gen0; but changing the setters to protected opens up more possibilities for types derived from `System.Net.WebSockets.WebSocket` and using a derived `WebSocketReceiveResult`."},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/156845499","html_url":"https://github.com/dotnet/corefx/pull/4520#issuecomment-156845499","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/4520","id":156845499,"user":{"login":"benaadams","id":1142958,"avatar_url":"https://avatars.githubusercontent.com/u/1142958?v=3","gravatar_id":"","url":"https://api.github.com/users/benaadams","html_url":"https://github.com/benaadams","followers_url":"https://api.github.com/users/benaadams/followers","following_url":"https://api.github.com/users/benaadams/following{/other_user}","gists_url":"https://api.github.com/users/benaadams/gists{/gist_id}","starred_url":"https://api.github.com/users/benaadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaadams/subscriptions","organizations_url":"https://api.github.com/users/benaadams/orgs","repos_url":"https://api.github.com/users/benaadams/repos","events_url":"https://api.github.com/users/benaadams/events{/privacy}","received_events_url":"https://api.github.com/users/benaadams/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T19:28:57Z","updated_at":"2015-11-15T19:28:57Z","body":":( was hoping changing from private to protected wouldn't be a contract change\r\n\r\nMight as well go bigger then; any performance mileage in changing to struct then? Or since its always used as `Task<WebSocketReceiveResult>` would there be little advantage?"}}