{"action":"created","issue":{"url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/3","repository_url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter","labels_url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/3/comments","events_url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/3/events","html_url":"https://github.com/volosoft/castle-windsor-ms-adapter/issues/3","id":197881117,"number":3,"title":"Scoped Dependencies","user":{"login":"BrandtWright","id":4792365,"avatar_url":"https://avatars.githubusercontent.com/u/4792365?v=3","gravatar_id":"","url":"https://api.github.com/users/BrandtWright","html_url":"https://github.com/BrandtWright","followers_url":"https://api.github.com/users/BrandtWright/followers","following_url":"https://api.github.com/users/BrandtWright/following{/other_user}","gists_url":"https://api.github.com/users/BrandtWright/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandtWright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandtWright/subscriptions","organizations_url":"https://api.github.com/users/BrandtWright/orgs","repos_url":"https://api.github.com/users/BrandtWright/repos","events_url":"https://api.github.com/users/BrandtWright/events{/privacy}","received_events_url":"https://api.github.com/users/BrandtWright/received_events","type":"User","site_admin":false},"labels":[{"id":508359410,"url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/labels/problem","name":"problem","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"assignees":[{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-12-28T16:39:00Z","updated_at":"2016-12-29T21:43:36Z","closed_at":null,"body":"When registering components as scoped (which is equivalent to perwebrequest) with aspnet core framework via the configureservices(...) method in the startup class things seem to work fine until I request a scoped instance from classes registered with the windsor container.  \r\n\r\nIf I register IFoo with aspnet core via configureservices(...) and then request an instance of it from multiple types that were registered with the windsor container I get a new instance of IFoo in each class that requests an instance of IFoo even though this all happens as part of the same web request.\r\n\r\nThis is a trivial example but consider trying to implement a unit or work pattern for DB integration and not being able to inject the same instance of the unit of work in multiple types registered via windsor for a single web request.  \r\n\r\nAm I doing something wrong?  Has anyone had any luck with this?"},"comment":{"url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/comments/269698150","html_url":"https://github.com/volosoft/castle-windsor-ms-adapter/issues/3#issuecomment-269698150","issue_url":"https://api.github.com/repos/volosoft/castle-windsor-ms-adapter/issues/3","id":269698150,"user":{"login":"BrandtWright","id":4792365,"avatar_url":"https://avatars.githubusercontent.com/u/4792365?v=3","gravatar_id":"","url":"https://api.github.com/users/BrandtWright","html_url":"https://github.com/BrandtWright","followers_url":"https://api.github.com/users/BrandtWright/followers","following_url":"https://api.github.com/users/BrandtWright/following{/other_user}","gists_url":"https://api.github.com/users/BrandtWright/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandtWright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandtWright/subscriptions","organizations_url":"https://api.github.com/users/BrandtWright/orgs","repos_url":"https://api.github.com/users/BrandtWright/repos","events_url":"https://api.github.com/users/BrandtWright/events{/privacy}","received_events_url":"https://api.github.com/users/BrandtWright/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T21:43:36Z","updated_at":"2016-12-29T21:43:36Z","body":"Sure.  I'll put that together now and share it when done.  "}}
{"actor":{"display_login":"BrandtWright"}}