{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2117","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2117/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2117/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2117/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2117","id":114900931,"number":2117,"title":"Need more flexible registrations or access to Autofac ContainerBuilder","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},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/feature%20request","name":"feature request","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-11-03T20:20:40Z","updated_at":"2016-01-22T00:11:39Z","closed_at":null,"body":"I'm in the process of adding some dependency registrations that will end up getting used in a custom view controller. In my specific case, it's a configuration value provider that implements five different interfaces.\r\n\r\nIn Autofac, I'd register the dependency like this:\r\n\r\n    builder.RegisterType<ConfigurationProvider>()\r\n            .AsImplementedInterfaces()\r\n            .AsSelf()\r\n            .SingleInstance();\r\n\r\nThere's really no equivalent for `AsImplementedInterfaces()` in the custom IdentityServer `Registration` object syntax. I believe I'm actually going to have to create six different registrations - one for `AsSelf()` and one for each of the five implemented interfaces. That's not super awesome if I want to give the one service a lifetime scope of singleton - I'll have six singletons.\r\n\r\nThere's also no provision I've found for setting property injection up - the `PropertiesAutowired()` registration in Autofac.\r\n\r\nIt would be nice if there was a more concrete integration with Autofac (not IL-merged?) so I could access the actual ContainerBuilder to add registrations with the full power of Autofac. Either that, or (less desirable) enhance the custom DI wrapper language to support more features."},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/173757185","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2117#issuecomment-173757185","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2117","id":173757185,"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":"2016-01-22T00:11:39Z","updated_at":"2016-01-22T00:11:39Z","body":"Change in plans: Given the challenge here (as well as some other unrelated challenges we're running into with the project) we worked and got the green light to actually do .NET Core 1.0 / ASP.NET Core 1.0 / IdentityServer4.\r\n\r\nYeah, it surprised the crap out of me, too. :open_mouth: \r\n\r\nAnyway, feel free to close this if you think it's no longer interesting to pursue. If we run into stuff or can help on IdentityServer4, you'll probably see us over there. (_You have been warned_ :wink: )"}}