{"action":"created","issue":{"url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/3","repository_url":"https://api.github.com/repos/autofac/Autofac.AspNetCore","labels_url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/3/comments","events_url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/3/events","html_url":"https://github.com/autofac/Autofac.AspNetCore/issues/3","id":328321110,"node_id":"MDU6SXNzdWUzMjgzMjExMTA=","number":3,"title":"Support Generic Hosts in ASP.NET Core 2.1","user":{"login":"michael-wolfenden","id":780521,"node_id":"MDQ6VXNlcjc4MDUyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/780521?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-wolfenden","html_url":"https://github.com/michael-wolfenden","followers_url":"https://api.github.com/users/michael-wolfenden/followers","following_url":"https://api.github.com/users/michael-wolfenden/following{/other_user}","gists_url":"https://api.github.com/users/michael-wolfenden/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-wolfenden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-wolfenden/subscriptions","organizations_url":"https://api.github.com/users/michael-wolfenden/orgs","repos_url":"https://api.github.com/users/michael-wolfenden/repos","events_url":"https://api.github.com/users/michael-wolfenden/events{/privacy}","received_events_url":"https://api.github.com/users/michael-wolfenden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-31T22:37:44Z","updated_at":"2018-08-27T11:35:33Z","closed_at":"2018-06-03T11:45:54Z","author_association":"NONE","body":"ASP.NET Core 2.1 has introduced [Generic Hosts](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-2.1) with the new `IHostBuilder` abstraction which allows [configuring a custom container](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-2.1#container-configuration).\r\n\r\nIt would be nice to have a `UseAutofac` extension on `IHostBuilder` as we have on `IWebHostBuilder` that abstracts the following\r\n\r\n```csharp\r\nvar host = new HostBuilder()\r\n    .UseServiceProviderFactory<ServiceContainer>(new SerivceContainerFactory())\r\n    .ConfigureContainer<ServiceContainer>((hostContext, container) =>\r\n    {\r\n    })\r\n``` "},"comment":{"url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/comments/416198137","html_url":"https://github.com/autofac/Autofac.AspNetCore/issues/3#issuecomment-416198137","issue_url":"https://api.github.com/repos/autofac/Autofac.AspNetCore/issues/3","id":416198137,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjE5ODEzNw==","user":{"login":"alex-contrib","id":41734618,"node_id":"MDQ6VXNlcjQxNzM0NjE4","avatar_url":"https://avatars3.githubusercontent.com/u/41734618?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-contrib","html_url":"https://github.com/alex-contrib","followers_url":"https://api.github.com/users/alex-contrib/followers","following_url":"https://api.github.com/users/alex-contrib/following{/other_user}","gists_url":"https://api.github.com/users/alex-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-contrib/subscriptions","organizations_url":"https://api.github.com/users/alex-contrib/orgs","repos_url":"https://api.github.com/users/alex-contrib/repos","events_url":"https://api.github.com/users/alex-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/alex-contrib/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T11:35:33Z","updated_at":"2018-08-27T11:35:33Z","author_association":"NONE","body":"Same issue for me, in plain .net core console project.\r\nConsole just hangs on shutdown when UseServiceProviderFactory used"}}
{"actor":{"display_login":"alex-contrib"}}