{"action":"created","issue":{"url":"https://api.github.com/repos/autofac/Autofac/issues/641","labels_url":"https://api.github.com/repos/autofac/Autofac/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/autofac/Autofac/issues/641/comments","events_url":"https://api.github.com/repos/autofac/Autofac/issues/641/events","html_url":"https://github.com/autofac/Autofac/issues/641","id":86136566,"number":641,"title":"Add 'WhereTypeClosesOpenGenericInterface' registration builder extension","user":{"login":"matthewcanty","id":2089581,"avatar_url":"https://avatars.githubusercontent.com/u/2089581?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewcanty","html_url":"https://github.com/matthewcanty","followers_url":"https://api.github.com/users/matthewcanty/followers","following_url":"https://api.github.com/users/matthewcanty/following{/other_user}","gists_url":"https://api.github.com/users/matthewcanty/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewcanty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewcanty/subscriptions","organizations_url":"https://api.github.com/users/matthewcanty/orgs","repos_url":"https://api.github.com/users/matthewcanty/repos","events_url":"https://api.github.com/users/matthewcanty/events{/privacy}","received_events_url":"https://api.github.com/users/matthewcanty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T11:24:20Z","updated_at":"2015-06-08T14:24:47Z","closed_at":null,"body":"I've been using the extension method described in this post:\r\n\r\n[Registering open generic interface types in Autofac - Alex Meyer-Gleaves (2009)](http://alexmg.com/registering-open-generic-interface-types-in-autofac/)\r\n\r\nSeems to me like it should be an extension method available in the AutoFac features - `OpenGenericRegistrationExtensions`?.\r\n\r\nWilling to hear views and submit a pull request - *being sure to cite Alex as the author of course!*"},"comment":{"url":"https://api.github.com/repos/autofac/Autofac/issues/comments/110012868","html_url":"https://github.com/autofac/Autofac/issues/641#issuecomment-110012868","issue_url":"https://api.github.com/repos/autofac/Autofac/issues/641","id":110012868,"user":{"login":"tillig","id":1156571,"avatar_url":"https://avatars.githubusercontent.com/u/1156571?v=3","gravatar_id":"","url":"https://api.github.com/users/tillig","html_url":"https://github.com/tillig","followers_url":"https://api.github.com/users/tillig/followers","following_url":"https://api.github.com/users/tillig/following{/other_user}","gists_url":"https://api.github.com/users/tillig/gists{/gist_id}","starred_url":"https://api.github.com/users/tillig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tillig/subscriptions","organizations_url":"https://api.github.com/users/tillig/orgs","repos_url":"https://api.github.com/users/tillig/repos","events_url":"https://api.github.com/users/tillig/events{/privacy}","received_events_url":"https://api.github.com/users/tillig/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T14:24:47Z","updated_at":"2015-06-08T14:24:47Z","body":"Per the blog entry:\r\n\r\n> UPDATE (22 December 2009): I have submitted a patch to Nick and this feature has now been added to the Autofac V2 codebase. While including the patch Nick added support for open generic classes and renamed the extension method to `AsClosedTypesOf`. This post will be left in its current form and remains a valid example of extending Autofac.\r\n\r\nHave you tried using `AsClosedTypesOf`? We have documentation about it and other scanning methods [on the Autofac doc site](http://autofac.readthedocs.org/en/latest/register/scanning.html)."}}