{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Antiforgery/issues/62","repository_url":"https://api.github.com/repos/aspnet/Antiforgery","labels_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/62/comments","events_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/62/events","html_url":"https://github.com/aspnet/Antiforgery/issues/62","id":138013915,"number":62,"title":"Consider making DefaultAntiforgery scoped instead of singleton","user":{"login":"HaoK","id":6537861,"avatar_url":"https://avatars.githubusercontent.com/u/6537861?v=3","gravatar_id":"","url":"https://api.github.com/users/HaoK","html_url":"https://github.com/HaoK","followers_url":"https://api.github.com/users/HaoK/followers","following_url":"https://api.github.com/users/HaoK/following{/other_user}","gists_url":"https://api.github.com/users/HaoK/gists{/gist_id}","starred_url":"https://api.github.com/users/HaoK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaoK/subscriptions","organizations_url":"https://api.github.com/users/HaoK/orgs","repos_url":"https://api.github.com/users/HaoK/repos","events_url":"https://api.github.com/users/HaoK/events{/privacy}","received_events_url":"https://api.github.com/users/HaoK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T22:36:20Z","updated_at":"2016-03-02T23:15:23Z","closed_at":null,"body":"This would let us get rid of the service locator antipattern...\r\n\r\n-Microsoft.AspNetCore.Antiforgery\\Internal\\DefaultAntiforgery.cs:331:\r\n`var contextAccessor = services.GetRequiredService<IAntiforgeryContextAccessor>();`\r\n\r\n-Microsoft.AspNetCore.Antiforgery\\Internal\\DefaultAntiforgery.cs:441:\r\n`var contextAccessor = services.GetRequiredService<IAntiforgeryContextAccessor>();`\r\n\r\nhttps://github.com/aspnet/Coherence-Signed/issues/186"},"comment":{"url":"https://api.github.com/repos/aspnet/Antiforgery/issues/comments/191488287","html_url":"https://github.com/aspnet/Antiforgery/issues/62#issuecomment-191488287","issue_url":"https://api.github.com/repos/aspnet/Antiforgery/issues/62","id":191488287,"user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars.githubusercontent.com/u/1430011?v=3","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T23:15:23Z","updated_at":"2016-03-02T23:15:23Z","body":"Ran this by @lodejard and he likes the idea of a feature. The stuff that antiforgery puts in the context really is related to the current `HttpRequest` as a unit of work."}}