{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Hosting/issues/1349","repository_url":"https://api.github.com/repos/aspnet/Hosting","labels_url":"https://api.github.com/repos/aspnet/Hosting/issues/1349/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Hosting/issues/1349/comments","events_url":"https://api.github.com/repos/aspnet/Hosting/issues/1349/events","html_url":"https://github.com/aspnet/Hosting/issues/1349","id":304871921,"number":1349,"title":"Provide a way to supply an external IServiceCollection to WebHostBuilder","user":{"login":"eisendle","id":14841673,"avatar_url":"https://avatars1.githubusercontent.com/u/14841673?v=4","gravatar_id":"","url":"https://api.github.com/users/eisendle","html_url":"https://github.com/eisendle","followers_url":"https://api.github.com/users/eisendle/followers","following_url":"https://api.github.com/users/eisendle/following{/other_user}","gists_url":"https://api.github.com/users/eisendle/gists{/gist_id}","starred_url":"https://api.github.com/users/eisendle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisendle/subscriptions","organizations_url":"https://api.github.com/users/eisendle/orgs","repos_url":"https://api.github.com/users/eisendle/repos","events_url":"https://api.github.com/users/eisendle/events{/privacy}","received_events_url":"https://api.github.com/users/eisendle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-13T17:53:43Z","updated_at":"2018-03-13T17:53:43Z","closed_at":null,"author_association":"NONE","body":"I´m writting a server framework which has the ability to load extensions (modules). The framework  creates a ServiceCollection and during the extension lifecycle the service collection is passed to the extensions to register their services. One of these extensions utilizes asp.net core. It´s problematic that there is no way to pass an external service collection to the WebHostBuilder.\r\n\r\nWhen this scenario is something which is desirable (I hope so :)), then let´s discuss where would be a appropriate place to add this feature.\r\n\r\nWhat comes into my mind, are these three possibilities:\r\n\r\n- Add a constructor overload to WebHostBuilder\r\n- Add another overload of WebHost.CreateDefaultBuilder which takes a IServiceCollection\r\n- Add a new method to WebHostBuilder, something like `WithServiceCollection(IServiceCollection collection)`\r\n\r\nWhen we agree on an appropriate place to add this, I would be happy to supply a PR.\r\n\r\n"}}
{"actor":{"display_login":"eisendle"}}