{"action":"created","issue":{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/215","repository_url":"https://api.github.com/repos/simpleinjector/SimpleInjector","labels_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/215/comments","events_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/215/events","html_url":"https://github.com/simpleinjector/SimpleInjector/issues/215","id":146485320,"number":215,"title":"RegisterCollection from assemblies with scope","user":{"login":"mrchief","id":781818,"avatar_url":"https://avatars.githubusercontent.com/u/781818?v=3","gravatar_id":"","url":"https://api.github.com/users/mrchief","html_url":"https://github.com/mrchief","followers_url":"https://api.github.com/users/mrchief/followers","following_url":"https://api.github.com/users/mrchief/following{/other_user}","gists_url":"https://api.github.com/users/mrchief/gists{/gist_id}","starred_url":"https://api.github.com/users/mrchief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrchief/subscriptions","organizations_url":"https://api.github.com/users/mrchief/orgs","repos_url":"https://api.github.com/users/mrchief/repos","events_url":"https://api.github.com/users/mrchief/events{/privacy}","received_events_url":"https://api.github.com/users/mrchief/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/labels/discussion","name":"discussion","color":"d4c5f9"},{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/labels/feature","name":"feature","color":"0052cc"},{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/labels/task","name":"task","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-04-07T01:45:23Z","updated_at":"2016-04-09T21:26:24Z","closed_at":null,"body":"Not sure how to do this with new API\r\n\r\n**v2.x code**\r\n```\r\nvar scopedLifestyle = new ExecutionContextScopeLifestyle();\r\ncontainer.RegisterManyForOpenGeneric(typeof(IRequestHandler<,>), scopedLifestyle, assemblies);\r\n```\r\n\r\n`RegisterCollection` doesn't take scope and `Scope.CreateRegistration` doesn't take assemblies."},"comment":{"url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/comments/207855690","html_url":"https://github.com/simpleinjector/SimpleInjector/issues/215#issuecomment-207855690","issue_url":"https://api.github.com/repos/simpleinjector/SimpleInjector/issues/215","id":207855690,"user":{"login":"mrchief","id":781818,"avatar_url":"https://avatars.githubusercontent.com/u/781818?v=3","gravatar_id":"","url":"https://api.github.com/users/mrchief","html_url":"https://github.com/mrchief","followers_url":"https://api.github.com/users/mrchief/followers","following_url":"https://api.github.com/users/mrchief/following{/other_user}","gists_url":"https://api.github.com/users/mrchief/gists{/gist_id}","starred_url":"https://api.github.com/users/mrchief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrchief/subscriptions","organizations_url":"https://api.github.com/users/mrchief/orgs","repos_url":"https://api.github.com/users/mrchief/repos","events_url":"https://api.github.com/users/mrchief/events{/privacy}","received_events_url":"https://api.github.com/users/mrchief/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T21:26:24Z","updated_at":"2016-04-09T21:26:24Z","body":"> especially since I feel that singleton object graphs are actually the way to go.\r\n\r\nDo you mean in web apps like MVC/WebAPI etc? Why do you feel so? ANd things like DbContext et. al. are better off disposed, aren't they?"}}