{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1395","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1395/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1395/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1395/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1395","id":80163614,"number":1395,"title":"IoC/DI, IdentityServerServiceFactory Question","user":{"login":"peske","id":6330857,"avatar_url":"https://avatars.githubusercontent.com/u/6330857?v=3","gravatar_id":"","url":"https://api.github.com/users/peske","html_url":"https://github.com/peske","followers_url":"https://api.github.com/users/peske/followers","following_url":"https://api.github.com/users/peske/following{/other_user}","gists_url":"https://api.github.com/users/peske/gists{/gist_id}","starred_url":"https://api.github.com/users/peske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peske/subscriptions","organizations_url":"https://api.github.com/users/peske/orgs","repos_url":"https://api.github.com/users/peske/repos","events_url":"https://api.github.com/users/peske/events{/privacy}","received_events_url":"https://api.github.com/users/peske/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-24T13:36:27Z","updated_at":"2015-05-24T15:46:17Z","closed_at":null,"body":"No doubt that you've done great job with service-pluggable infrastructure and IdentityServerServiceFactory class, but... But the project seriously suffers due to the lack of the appropriate documentation (I don't like to criticize free, open-source projects, still...) Avoiding bothering you with asking for help here, I'm often spending hours in finding out how to accomplish something easy (I'm sure it is), and often ending completely lost. Luckily you are always pretty fast answering my questions here. So my question is: once a service is registered with IdentityServerServiceFactory, how can I get the reference to this service from other code. For example if we have registration like:\r\n\r\nfactory.Register(new Registration<UserAccountService>());\r\n\r\nHow can I get the reference to the registered service (UserAccountService in this case) from within some other class within the project?\r\n\r\nUserAccountService accountService = ...?\r\n\r\nIf not documented, new service plugin mechanism, with using IoC/DI pattern, with using generic types..., becomes nightmare to track down. Often I'm feeling so lost that I would be happy to see good old spaghetti code :) The fact that you are using not so common IoC/DI container (Autofac), and custom \"Registration\" class approach makes things even more difficult.\r\n\r\nSorry for my criticism and thanks for you help! Again - the product is awesome!"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/105028418","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1395#issuecomment-105028418","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1395","id":105028418,"user":{"login":"peske","id":6330857,"avatar_url":"https://avatars.githubusercontent.com/u/6330857?v=3","gravatar_id":"","url":"https://api.github.com/users/peske","html_url":"https://github.com/peske","followers_url":"https://api.github.com/users/peske/followers","following_url":"https://api.github.com/users/peske/following{/other_user}","gists_url":"https://api.github.com/users/peske/gists{/gist_id}","starred_url":"https://api.github.com/users/peske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peske/subscriptions","organizations_url":"https://api.github.com/users/peske/orgs","repos_url":"https://api.github.com/users/peske/repos","events_url":"https://api.github.com/users/peske/events{/privacy}","received_events_url":"https://api.github.com/users/peske/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T15:46:17Z","updated_at":"2015-05-24T15:46:17Z","body":"@veikkoeeva Sorry, but I don't understand what you are trying to say. Probably I would find some time to participate in documentation, but at the moment I'm struggling to understand how things are working."}}