{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/comments/31188829","id":31188829,"diff_hunk":"@@ -56,5 +56,15 @@ public static void Set(this ISessionCollection session, string key, byte[] value\n         {\n             session.Set(key, new ArraySegment<byte>(value));\n         }\n+        \n+        public static T Get<T>(this ISessionCollection session, string key, ISessionFormatter<T> formatter)\n+        {\n+            return formatter.Deserialize(session.Get(key));\n+        }\n+\n+        public static void Set<T>(this ISessionCollection session, string key, T value, ISessionFormatter<T> formatter)\n+        {\n+            session.Set(key, formatter.Serialize(value));\n+        }\n     }\n }","path":"src/Microsoft.AspNet.Http.Extensions/SessionCollectionExtensions.cs","position":15,"original_position":15,"commit_id":"46baad0f10388de37bc5c8e76bf9df8f00d6a1bd","original_commit_id":"46baad0f10388de37bc5c8e76bf9df8f00d6a1bd","user":{"login":"hishamco","id":3237266,"avatar_url":"https://avatars.githubusercontent.com/u/3237266?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamco","html_url":"https://github.com/hishamco","followers_url":"https://api.github.com/users/hishamco/followers","following_url":"https://api.github.com/users/hishamco/following{/other_user}","gists_url":"https://api.github.com/users/hishamco/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamco/subscriptions","organizations_url":"https://api.github.com/users/hishamco/orgs","repos_url":"https://api.github.com/users/hishamco/repos","events_url":"https://api.github.com/users/hishamco/events{/privacy}","received_events_url":"https://api.github.com/users/hishamco/received_events","type":"User","site_admin":false},"body":"@jasonwilliams200OK I added two methods without adding or modifying line-break","created_at":"2015-05-27T22:50:18Z","updated_at":"2015-05-27T22:50:18Z","html_url":"https://github.com/aspnet/HttpAbstractions/pull/286#discussion_r31188829","pull_request_url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286","_links":{"self":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/comments/31188829"},"html":{"href":"https://github.com/aspnet/HttpAbstractions/pull/286#discussion_r31188829"},"pull_request":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286","id":33595271,"html_url":"https://github.com/aspnet/HttpAbstractions/pull/286","diff_url":"https://github.com/aspnet/HttpAbstractions/pull/286.diff","patch_url":"https://github.com/aspnet/HttpAbstractions/pull/286.patch","issue_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/286","number":286,"state":"open","locked":false,"title":"Support Set<T> & Get<T> in ISessionCollection","user":{"login":"hishamco","id":3237266,"avatar_url":"https://avatars.githubusercontent.com/u/3237266?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamco","html_url":"https://github.com/hishamco","followers_url":"https://api.github.com/users/hishamco/followers","following_url":"https://api.github.com/users/hishamco/following{/other_user}","gists_url":"https://api.github.com/users/hishamco/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamco/subscriptions","organizations_url":"https://api.github.com/users/hishamco/orgs","repos_url":"https://api.github.com/users/hishamco/repos","events_url":"https://api.github.com/users/hishamco/events{/privacy}","received_events_url":"https://api.github.com/users/hishamco/received_events","type":"User","site_admin":false},"body":"Provide a generic version of ```ISessionCollection.Set<T>``` and ```ISessionCollection.Get<T>``` which allow the developers to implement ```ISessionFormatter```. Based on David Fowler suggestion we can plug ```BondSessionFormatter``` or ```ProtoBufSessionFormatter``` as well.\r\n/cc @Tratcher","created_at":"2015-04-18T02:51:30Z","updated_at":"2015-05-27T22:50:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1ca5e0e47f3517c6bc55319ff1cb6b12f979458","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286/commits","review_comments_url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286/comments","review_comment_url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/286/comments","statuses_url":"https://api.github.com/repos/aspnet/HttpAbstractions/statuses/46baad0f10388de37bc5c8e76bf9df8f00d6a1bd","head":{"label":"hishamco:dev","ref":"dev","sha":"46baad0f10388de37bc5c8e76bf9df8f00d6a1bd","user":{"login":"hishamco","id":3237266,"avatar_url":"https://avatars.githubusercontent.com/u/3237266?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamco","html_url":"https://github.com/hishamco","followers_url":"https://api.github.com/users/hishamco/followers","following_url":"https://api.github.com/users/hishamco/following{/other_user}","gists_url":"https://api.github.com/users/hishamco/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamco/subscriptions","organizations_url":"https://api.github.com/users/hishamco/orgs","repos_url":"https://api.github.com/users/hishamco/repos","events_url":"https://api.github.com/users/hishamco/events{/privacy}","received_events_url":"https://api.github.com/users/hishamco/received_events","type":"User","site_admin":false},"repo":{"id":32222983,"name":"HttpAbstractions","full_name":"hishamco/HttpAbstractions","owner":{"login":"hishamco","id":3237266,"avatar_url":"https://avatars.githubusercontent.com/u/3237266?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamco","html_url":"https://github.com/hishamco","followers_url":"https://api.github.com/users/hishamco/followers","following_url":"https://api.github.com/users/hishamco/following{/other_user}","gists_url":"https://api.github.com/users/hishamco/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamco/subscriptions","organizations_url":"https://api.github.com/users/hishamco/orgs","repos_url":"https://api.github.com/users/hishamco/repos","events_url":"https://api.github.com/users/hishamco/events{/privacy}","received_events_url":"https://api.github.com/users/hishamco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hishamco/HttpAbstractions","description":"HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities.","fork":true,"url":"https://api.github.com/repos/hishamco/HttpAbstractions","forks_url":"https://api.github.com/repos/hishamco/HttpAbstractions/forks","keys_url":"https://api.github.com/repos/hishamco/HttpAbstractions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hishamco/HttpAbstractions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hishamco/HttpAbstractions/teams","hooks_url":"https://api.github.com/repos/hishamco/HttpAbstractions/hooks","issue_events_url":"https://api.github.com/repos/hishamco/HttpAbstractions/issues/events{/number}","events_url":"https://api.github.com/repos/hishamco/HttpAbstractions/events","assignees_url":"https://api.github.com/repos/hishamco/HttpAbstractions/assignees{/user}","branches_url":"https://api.github.com/repos/hishamco/HttpAbstractions/branches{/branch}","tags_url":"https://api.github.com/repos/hishamco/HttpAbstractions/tags","blobs_url":"https://api.github.com/repos/hishamco/HttpAbstractions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hishamco/HttpAbstractions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hishamco/HttpAbstractions/git/refs{/sha}","trees_url":"https://api.github.com/repos/hishamco/HttpAbstractions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hishamco/HttpAbstractions/statuses/{sha}","languages_url":"https://api.github.com/repos/hishamco/HttpAbstractions/languages","stargazers_url":"https://api.github.com/repos/hishamco/HttpAbstractions/stargazers","contributors_url":"https://api.github.com/repos/hishamco/HttpAbstractions/contributors","subscribers_url":"https://api.github.com/repos/hishamco/HttpAbstractions/subscribers","subscription_url":"https://api.github.com/repos/hishamco/HttpAbstractions/subscription","commits_url":"https://api.github.com/repos/hishamco/HttpAbstractions/commits{/sha}","git_commits_url":"https://api.github.com/repos/hishamco/HttpAbstractions/git/commits{/sha}","comments_url":"https://api.github.com/repos/hishamco/HttpAbstractions/comments{/number}","issue_comment_url":"https://api.github.com/repos/hishamco/HttpAbstractions/issues/comments{/number}","contents_url":"https://api.github.com/repos/hishamco/HttpAbstractions/contents/{+path}","compare_url":"https://api.github.com/repos/hishamco/HttpAbstractions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hishamco/HttpAbstractions/merges","archive_url":"https://api.github.com/repos/hishamco/HttpAbstractions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hishamco/HttpAbstractions/downloads","issues_url":"https://api.github.com/repos/hishamco/HttpAbstractions/issues{/number}","pulls_url":"https://api.github.com/repos/hishamco/HttpAbstractions/pulls{/number}","milestones_url":"https://api.github.com/repos/hishamco/HttpAbstractions/milestones{/number}","notifications_url":"https://api.github.com/repos/hishamco/HttpAbstractions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hishamco/HttpAbstractions/labels{/name}","releases_url":"https://api.github.com/repos/hishamco/HttpAbstractions/releases{/id}","created_at":"2015-03-14T17:13:44Z","updated_at":"2015-04-18T02:35:10Z","pushed_at":"2015-04-18T02:35:10Z","git_url":"git://github.com/hishamco/HttpAbstractions.git","ssh_url":"git@github.com:hishamco/HttpAbstractions.git","clone_url":"https://github.com/hishamco/HttpAbstractions.git","svn_url":"https://github.com/hishamco/HttpAbstractions","homepage":"","size":1349,"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":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"f5267fc14546c369c440db56569572568ae9a9d5","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":15320915,"name":"HttpAbstractions","full_name":"aspnet/HttpAbstractions","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/HttpAbstractions","description":"HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities.","fork":false,"url":"https://api.github.com/repos/aspnet/HttpAbstractions","forks_url":"https://api.github.com/repos/aspnet/HttpAbstractions/forks","keys_url":"https://api.github.com/repos/aspnet/HttpAbstractions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/HttpAbstractions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/HttpAbstractions/teams","hooks_url":"https://api.github.com/repos/aspnet/HttpAbstractions/hooks","issue_events_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/HttpAbstractions/events","assignees_url":"https://api.github.com/repos/aspnet/HttpAbstractions/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/HttpAbstractions/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/HttpAbstractions/tags","blobs_url":"https://api.github.com/repos/aspnet/HttpAbstractions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/HttpAbstractions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/HttpAbstractions/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/HttpAbstractions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/HttpAbstractions/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/HttpAbstractions/languages","stargazers_url":"https://api.github.com/repos/aspnet/HttpAbstractions/stargazers","contributors_url":"https://api.github.com/repos/aspnet/HttpAbstractions/contributors","subscribers_url":"https://api.github.com/repos/aspnet/HttpAbstractions/subscribers","subscription_url":"https://api.github.com/repos/aspnet/HttpAbstractions/subscription","commits_url":"https://api.github.com/repos/aspnet/HttpAbstractions/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/HttpAbstractions/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/HttpAbstractions/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/HttpAbstractions/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/HttpAbstractions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/HttpAbstractions/merges","archive_url":"https://api.github.com/repos/aspnet/HttpAbstractions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/HttpAbstractions/downloads","issues_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/HttpAbstractions/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/HttpAbstractions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/HttpAbstractions/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/HttpAbstractions/releases{/id}","created_at":"2013-12-19T19:38:45Z","updated_at":"2015-05-08T11:46:56Z","pushed_at":"2015-05-27T22:21:19Z","git_url":"git://github.com/aspnet/HttpAbstractions.git","ssh_url":"git@github.com:aspnet/HttpAbstractions.git","clone_url":"https://github.com/aspnet/HttpAbstractions.git","svn_url":"https://github.com/aspnet/HttpAbstractions","homepage":"","size":5272,"stargazers_count":85,"watchers_count":85,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":41,"forks":39,"open_issues":41,"watchers":85,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286"},"html":{"href":"https://github.com/aspnet/HttpAbstractions/pull/286"},"issue":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/286"},"comments":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/HttpAbstractions/statuses/46baad0f10388de37bc5c8e76bf9df8f00d6a1bd"}}}}