{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/comments/57221902","id":57221902,"diff_hunk":"@@ -325,10 +325,21 @@ private bool IsValidationRequired(HttpContext httpContext)\n             return true;\n         }\n \n+        private static IAntiforgeryContextAccessor GetAntiforgeryFeature(HttpContext httpContext)\n+        {\n+            var antiforgery = httpContext.Features.Get<IAntiforgeryContextAccessor>();","path":"src/Microsoft.AspNetCore.Antiforgery/Internal/DefaultAntiforgery.cs","position":6,"original_position":6,"commit_id":"2b69cf1fbe132c3664266e643a0c367d5bfba081","original_commit_id":"2b69cf1fbe132c3664266e643a0c367d5bfba081","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"body":"`antifogertyFeature`","created_at":"2016-03-23T19:26:59Z","updated_at":"2016-03-23T19:26:59Z","html_url":"https://github.com/aspnet/Antiforgery/pull/68#discussion_r57221902","pull_request_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/comments/57221902"},"html":{"href":"https://github.com/aspnet/Antiforgery/pull/68#discussion_r57221902"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68","id":63933201,"html_url":"https://github.com/aspnet/Antiforgery/pull/68","diff_url":"https://github.com/aspnet/Antiforgery/pull/68.diff","patch_url":"https://github.com/aspnet/Antiforgery/pull/68.patch","issue_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/68","number":68,"state":"open","locked":false,"title":"Make IAntiforgeryContextAccessor a Feature","user":{"login":"ryanbrandenburg","id":14987221,"avatar_url":"https://avatars.githubusercontent.com/u/14987221?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanbrandenburg","html_url":"https://github.com/ryanbrandenburg","followers_url":"https://api.github.com/users/ryanbrandenburg/followers","following_url":"https://api.github.com/users/ryanbrandenburg/following{/other_user}","gists_url":"https://api.github.com/users/ryanbrandenburg/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanbrandenburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanbrandenburg/subscriptions","organizations_url":"https://api.github.com/users/ryanbrandenburg/orgs","repos_url":"https://api.github.com/users/ryanbrandenburg/repos","events_url":"https://api.github.com/users/ryanbrandenburg/events{/privacy}","received_events_url":"https://api.github.com/users/ryanbrandenburg/received_events","type":"User","site_admin":false},"body":"Fixes #62.\r\n\r\nPlease double check my usage of features as I only found one example of them in use.\r\n\r\nCC @rynowak \r\n","created_at":"2016-03-23T18:45:29Z","updated_at":"2016-03-23T19:26:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2891041d70cfec06247f2dd634c82087e3fdd00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68/commits","review_comments_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68/comments","review_comment_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/68/comments","statuses_url":"https://api.github.com/repos/aspnet/Antiforgery/statuses/2b69cf1fbe132c3664266e643a0c367d5bfba081","head":{"label":"aspnet:rybrande/DefaultAntifogerty","ref":"rybrande/DefaultAntifogerty","sha":"2b69cf1fbe132c3664266e643a0c367d5bfba081","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":36972072,"name":"Antiforgery","full_name":"aspnet/Antiforgery","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/Antiforgery","description":"AntiForgery token feature for ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/Antiforgery","forks_url":"https://api.github.com/repos/aspnet/Antiforgery/forks","keys_url":"https://api.github.com/repos/aspnet/Antiforgery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Antiforgery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Antiforgery/teams","hooks_url":"https://api.github.com/repos/aspnet/Antiforgery/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Antiforgery/events","assignees_url":"https://api.github.com/repos/aspnet/Antiforgery/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Antiforgery/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Antiforgery/tags","blobs_url":"https://api.github.com/repos/aspnet/Antiforgery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Antiforgery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Antiforgery/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Antiforgery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Antiforgery/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Antiforgery/languages","stargazers_url":"https://api.github.com/repos/aspnet/Antiforgery/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Antiforgery/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Antiforgery/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Antiforgery/subscription","commits_url":"https://api.github.com/repos/aspnet/Antiforgery/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Antiforgery/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Antiforgery/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Antiforgery/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Antiforgery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Antiforgery/merges","archive_url":"https://api.github.com/repos/aspnet/Antiforgery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Antiforgery/downloads","issues_url":"https://api.github.com/repos/aspnet/Antiforgery/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Antiforgery/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Antiforgery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Antiforgery/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Antiforgery/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Antiforgery/deployments","created_at":"2015-06-06T07:48:28Z","updated_at":"2016-03-10T06:24:27Z","pushed_at":"2016-03-23T18:45:30Z","git_url":"git://github.com/aspnet/Antiforgery.git","ssh_url":"git@github.com:aspnet/Antiforgery.git","clone_url":"https://github.com/aspnet/Antiforgery.git","svn_url":"https://github.com/aspnet/Antiforgery","homepage":"","size":393,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":18,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"c237f8989a9b62121fe2bb1e6ac5ebad6c5088eb","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":36972072,"name":"Antiforgery","full_name":"aspnet/Antiforgery","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/Antiforgery","description":"AntiForgery token feature for ASP.NET Core","fork":false,"url":"https://api.github.com/repos/aspnet/Antiforgery","forks_url":"https://api.github.com/repos/aspnet/Antiforgery/forks","keys_url":"https://api.github.com/repos/aspnet/Antiforgery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Antiforgery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Antiforgery/teams","hooks_url":"https://api.github.com/repos/aspnet/Antiforgery/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Antiforgery/events","assignees_url":"https://api.github.com/repos/aspnet/Antiforgery/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Antiforgery/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Antiforgery/tags","blobs_url":"https://api.github.com/repos/aspnet/Antiforgery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Antiforgery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Antiforgery/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Antiforgery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Antiforgery/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Antiforgery/languages","stargazers_url":"https://api.github.com/repos/aspnet/Antiforgery/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Antiforgery/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Antiforgery/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Antiforgery/subscription","commits_url":"https://api.github.com/repos/aspnet/Antiforgery/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Antiforgery/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Antiforgery/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Antiforgery/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Antiforgery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Antiforgery/merges","archive_url":"https://api.github.com/repos/aspnet/Antiforgery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Antiforgery/downloads","issues_url":"https://api.github.com/repos/aspnet/Antiforgery/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Antiforgery/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Antiforgery/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Antiforgery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Antiforgery/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Antiforgery/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Antiforgery/deployments","created_at":"2015-06-06T07:48:28Z","updated_at":"2016-03-10T06:24:27Z","pushed_at":"2016-03-23T18:45:30Z","git_url":"git://github.com/aspnet/Antiforgery.git","ssh_url":"git@github.com:aspnet/Antiforgery.git","clone_url":"https://github.com/aspnet/Antiforgery.git","svn_url":"https://github.com/aspnet/Antiforgery","homepage":"","size":393,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":18,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68"},"html":{"href":"https://github.com/aspnet/Antiforgery/pull/68"},"issue":{"href":"https://api.github.com/repos/aspnet/Antiforgery/issues/68"},"comments":{"href":"https://api.github.com/repos/aspnet/Antiforgery/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Antiforgery/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Antiforgery/statuses/2b69cf1fbe132c3664266e643a0c367d5bfba081"}}}}