{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/23","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/23/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/23/events","html_url":"https://github.com/IdentityServer/IdentityServer4.EntityFramework/issues/23","id":181926450,"number":23,"title":"Refactor the TokenCleanup","user":{"login":"xyting","id":14950276,"avatar_url":"https://avatars.githubusercontent.com/u/14950276?v=3","gravatar_id":"","url":"https://api.github.com/users/xyting","html_url":"https://github.com/xyting","followers_url":"https://api.github.com/users/xyting/followers","following_url":"https://api.github.com/users/xyting/following{/other_user}","gists_url":"https://api.github.com/users/xyting/gists{/gist_id}","starred_url":"https://api.github.com/users/xyting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyting/subscriptions","organizations_url":"https://api.github.com/users/xyting/orgs","repos_url":"https://api.github.com/users/xyting/repos","events_url":"https://api.github.com/users/xyting/events{/privacy}","received_events_url":"https://api.github.com/users/xyting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T01:57:11Z","updated_at":"2016-10-10T02:01:55Z","closed_at":null,"body":"@brockallen @leastprivilege \r\n\r\nThe current TokenCleanup implementation is enigmatical, in my view, it SHOULD use `IApplicationLifetime` interface under the `Microsoft.AspNetCore.Hosting` namespace. The interface is designed to give a developer the opportunity to gracefully startup but mostly shutdown the application. It is comprised of three properties and one method respectively: `ApplicationStarted`, `ApplicationStopping`, `ApplicationStopped`, and `StopApplication()`.\r\n\r\nIOW, the TokenCleanup's impls SHOULD register the Start method to `ApplicationStarted` and register the Stop to `ApplicationStopped` or `ApplicationStopping`. and the DbContext should get from DI.\r\n\r\nMaybe I SHOULD make a PR to this repo?"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/comments/252527973","html_url":"https://github.com/IdentityServer/IdentityServer4.EntityFramework/issues/23#issuecomment-252527973","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer4.EntityFramework/issues/23","id":252527973,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T02:01:55Z","updated_at":"2016-10-10T02:01:55Z","body":"great idea! PR welcome"}}
{"actor":{"display_login":"brockallen"}}